5009 lines
184 KiB
C
5009 lines
184 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (C) 2018-2021, Intel Corporation. */
|
|
|
|
#include "ice_common.h"
|
|
#include "ice_fdir.h"
|
|
|
|
/* These are training packet headers used to program flow director filters. */
|
|
|
|
static const u8 ice_fdir_tcpv4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x28, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00,
|
|
0x20, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
};
|
|
|
|
static const u8 ice_fdir_udpv4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x1C, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_sctpv4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x40, 0x84,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x14, 0x00, 0x00, 0x40, 0x00, 0x40, 0x10,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_vxlan_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
0x45, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x40, 0x00,
|
|
0x40, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x38, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xb2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x24,
|
|
0xbf, 0xc0, 0x30, 0xff, 0x00, 0x14, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x14, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x3a, 0x3d, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x40, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2c,
|
|
0x00, 0x6f, 0x30, 0xff, 0x00, 0x1c, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1c, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x3a, 0x24, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x08, 0xbe, 0xc7, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4c, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x38,
|
|
0x00, 0x4c, 0x30, 0xff, 0x00, 0x28, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x28, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x3a, 0x23, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x4e, 0xd2,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4c, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x38,
|
|
0x24, 0x42, 0x30, 0xff, 0x00, 0x28, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x54, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x40,
|
|
0x4e, 0x3d, 0x30, 0xff, 0x00, 0x30, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
|
|
0xff, 0xdc, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4e,
|
|
0x59, 0x08, 0x30, 0xff, 0x00, 0x3e, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0x7b, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x1d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x23, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x01, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb8, 0x00, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0xde,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x9d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x9a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0xff, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x6b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0xdf, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x1d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x23, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x01, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb8, 0x00, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0xde,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x9d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x9a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0xff, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x6b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0xdf, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x0d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x13, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x01, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb7, 0xf0, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0xde,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x8d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x8a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0xff, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x5b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0xdf, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_icmp4_gtpu4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4c, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x08, 0x68, 0x08, 0x68, 0x00, 0x00,
|
|
0x00, 0x00, 0x34, 0xff, 0x00, 0x28, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x02, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x1c, 0x00, 0x00, 0x40, 0x00, 0x40, 0x01,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x38, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x38, 0x22, 0x43, 0x30, 0xff,
|
|
0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu6_eh_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x44, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x44, 0x1b, 0x9a, 0x34, 0xff,
|
|
0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu6_eh_dw_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x44, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x44, 0x1b, 0x9a, 0x34, 0xff,
|
|
0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_gtpu6_eh_up_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x44, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x44, 0x1b, 0x8a, 0x34, 0xff,
|
|
0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x02, 0x10, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_l2tpv3_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x14, 0x00, 0x00, 0x40, 0x00, 0x40, 0x73,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_l2tpv3_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x73, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_esp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x14, 0x00, 0x00, 0x40, 0x00, 0x40, 0x32,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_esp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x32, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_ah_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x14, 0x00, 0x00, 0x40, 0x00, 0x40, 0x33,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_ah_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x33, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_nat_t_esp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x1C, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x11, 0x94, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_nat_t_esp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x08, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x11, 0x94, 0x00, 0x00, 0x00, 0x08,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_pfcp_node_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x2C, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x22, 0x65, 0x22, 0x65, 0x00, 0x00,
|
|
0x00, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_pfcp_session_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x2C, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x22, 0x65, 0x22, 0x65, 0x00, 0x00,
|
|
0x00, 0x00, 0x21, 0x00, 0x00, 0x10, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_pfcp_node_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x18, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x65,
|
|
0x22, 0x65, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
|
|
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_pfcp_session_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x18, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x65,
|
|
0x22, 0x65, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00,
|
|
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_non_ip_l2_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ecpri_tp0_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0xAE, 0xFE, 0x10, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_udp_ecpri_tp0_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x1C, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_frag_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x2C, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3B, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv4_frag_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x14, 0x00, 0x00, 0x20, 0x00, 0x40, 0x10,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00
|
|
};
|
|
|
|
/* IPV4 GRE INNER IPV4 */
|
|
static const u8 ice_fdir_ipv4_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x2e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x9e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00,
|
|
0x7c, 0xe5, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x36, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x96, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x1e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xcc, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x01, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x8a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x2a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x7c, 0xcb, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x91, 0xde, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE INNER IPV6 */
|
|
static const u8 ice_fdir_ipv6_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x8a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x02, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x82, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0xff, 0xd8, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gre4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x76, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x16, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8f, 0xdf,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE INNER IPV4 */
|
|
static const u8 ice_fdir_ipv4_gre6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x18, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x14, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7A, 0xEA, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gre6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x20, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x1C, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7A, 0xD1, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x08, 0xFF, 0xDE, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gre6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x2C, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x28, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7A, 0xD0, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8F, 0xE3,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE INNER IPV6 */
|
|
static const u8 ice_fdir_ipv6_gre6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x2C, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x86, 0xDD, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x3B, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gre6_pkt[] = {
|
|
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x34, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x86, 0xDD, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x08,
|
|
0xFF, 0x72, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gre6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x40, 0x2F, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x86, 0xDD, 0x60, 0x00, 0x00, 0x00, 0x00, 0x14,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8F, 0xE1, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x52, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x7a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x3a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xb0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x26,
|
|
0xbf, 0xba, 0x30, 0xff, 0x00, 0x16, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x72, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xbd, 0xc0, 0x30, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x66, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x66, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x3a,
|
|
0xbd, 0x9d, 0x30, 0xff, 0x00, 0x2a, 0x00, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0x7a,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x66, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x66, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x3a,
|
|
0x24, 0x3a, 0x30, 0xff, 0x00, 0x2a, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x4e, 0x37, 0x30, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x7a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x52, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x88, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4e,
|
|
0x59, 0x08, 0x30, 0xff, 0x00, 0x3e, 0x00, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0x7b, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x3e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x3a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xb0, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x26, 0xbf, 0xba, 0x30, 0xff,
|
|
0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00,
|
|
0x7c, 0xe5, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x46, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x42, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa8, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x2e, 0xbd, 0xc0, 0x30, 0xff,
|
|
0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x1e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xcc, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x52, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x4e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x9c, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x3a, 0xbd, 0x9d, 0x30, 0xff,
|
|
0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x2a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x7c, 0xcb, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x91, 0x7a, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x52, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x4e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x9c, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x3a, 0x24, 0x3a, 0x30, 0xff,
|
|
0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x02, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0x4e, 0x37, 0x30, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x66, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x62, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x88, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x4e, 0x59, 0x08, 0x30, 0xff,
|
|
0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x16, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8f, 0x7b,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU EH IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x72, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x1d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x6a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x23, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb8, 0x00, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0x7a,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU EH IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x9d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x76, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x56, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x9a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x82, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x4a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x6b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0x7b, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU EH IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x46, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x42, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa8, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x2e, 0xba, 0x1d, 0x34, 0xff,
|
|
0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00,
|
|
0x7c, 0xe5, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x4e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x4a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa0, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x36, 0xb8, 0x23, 0x34, 0xff,
|
|
0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x1e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xcc, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0xb8, 0x00, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x2a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x7c, 0xcb, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x91, 0x7a, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU EH IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0x1e, 0x9d, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x02, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x62, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x5e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x8c, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x4a, 0x48, 0x9a, 0x34, 0xff,
|
|
0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x6e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x6a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x80, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x56, 0x53, 0x6b, 0x34, 0xff,
|
|
0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x16, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8f, 0x7b,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU DW IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x72, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x1d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x6a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x23, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb8, 0x00, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0x7a,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU DW IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x9d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x76, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x56, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x9a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_dw_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x82, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x4a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x6b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x00,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0x7b, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU DW IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x46, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x42, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa8, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x2e, 0xba, 0x1d, 0x34, 0xff,
|
|
0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00,
|
|
0x7c, 0xe5, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x4e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x4a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa0, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x36, 0xb8, 0x23, 0x34, 0xff,
|
|
0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x1e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xcc, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0xb8, 0x00, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x2a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x7c, 0xcb, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x91, 0x7a, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU DW IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0x1e, 0x9d, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x02, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x62, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x5e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x8c, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x4a, 0x48, 0x9a, 0x34, 0xff,
|
|
0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_dw_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x6e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x6a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x80, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x56, 0x53, 0x6b, 0x34, 0xff,
|
|
0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x00, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x16, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8f, 0x7b,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU UP IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x72, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x2e,
|
|
0xba, 0x0d, 0x34, 0xff, 0x00, 0x1e, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x16, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x00, 0x7c, 0xe5, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x6a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x36,
|
|
0xb8, 0x13, 0x34, 0xff, 0x00, 0x26, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x1e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xcc, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0xb7, 0xf0, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x45, 0x00, 0x00, 0x2a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x06, 0x7c, 0xcb, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x91, 0x7a,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 GRE IPV4 GTPU UP IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x5e, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x42,
|
|
0x1e, 0x8d, 0x34, 0xff, 0x00, 0x32, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x02,
|
|
0x3b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x76, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x56, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x8c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x4a,
|
|
0x48, 0x8a, 0x34, 0xff, 0x00, 0x3a, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,
|
|
0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_up_gre4_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x82, 0x00, 0x01, 0x00, 0x00, 0x40, 0x2f,
|
|
0x7c, 0x4a, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x80, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x08, 0x68, 0x08, 0x68, 0x00, 0x56,
|
|
0x53, 0x5b, 0x34, 0xff, 0x00, 0x46, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x01, 0x10,
|
|
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x16,
|
|
0x06, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x8f, 0x7b, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU UP IPV4 */
|
|
static const u8 ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x46, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x42, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa8, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x2e, 0xba, 0x0d, 0x34, 0xff,
|
|
0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00,
|
|
0x7c, 0xe5, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x4e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x4a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0xa0, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x36, 0xb8, 0x13, 0x34, 0xff,
|
|
0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x1e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xcc, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x35, 0x00, 0x35, 0x00, 0x0a,
|
|
0x01, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0xb7, 0xf0, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x45, 0x00,
|
|
0x00, 0x2a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x06,
|
|
0x7c, 0xcb, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x00, 0x14, 0x00, 0x50, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
|
|
0x20, 0x00, 0x91, 0x7a, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 GRE IPV4 GTPU UP IPV6 */
|
|
static const u8 ice_fdir_ipv6_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x5a, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x56, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x94, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x42, 0x1e, 0x8d, 0x34, 0xff,
|
|
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x02, 0x3b, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x62, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x5e, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x8c, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x4a, 0x48, 0x8a, 0x34, 0xff,
|
|
0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x35,
|
|
0x00, 0x35, 0x00, 0x0a, 0xff, 0x6e, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_gtpu4_eh_up_gre6_pkt[] = {
|
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x6e, 0x2f, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x08, 0x00, 0x45, 0x00, 0x00, 0x6a, 0x00, 0x01,
|
|
0x00, 0x00, 0x40, 0x11, 0x7c, 0x80, 0x7f, 0x00,
|
|
0x00, 0x01, 0x7f, 0x00, 0x00, 0x01, 0x08, 0x68,
|
|
0x08, 0x68, 0x00, 0x56, 0x53, 0x5b, 0x34, 0xff,
|
|
0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x85, 0x01, 0x10, 0x00, 0x00, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x16, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x14,
|
|
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x02, 0x20, 0x00, 0x8f, 0x7b,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 L2TPV2 control */
|
|
static const u8 ice_fdir_ipv4_l2tpv2_ctrl_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x28, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xc2, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x14,
|
|
0x2c, 0x6b, 0xc8, 0x02, 0x00, 0x0c, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 L2TPV2 */
|
|
static const u8 ice_fdir_ipv4_l2tpv2_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x28, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xc2, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x14,
|
|
0x2c, 0x6b, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 */
|
|
static const u8 ice_fdir_ipv4_l2tpv2_ppp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x26, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xc4, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x12,
|
|
0xf5, 0x77, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV4 */
|
|
static const u8 ice_fdir_ipv4_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x3a, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xb0, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x26,
|
|
0xf5, 0x2e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x21, 0x45, 0x00, 0x00, 0x14,
|
|
0x00, 0x01, 0x00, 0x00, 0x40, 0x00, 0x7c, 0xe7,
|
|
0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00, 0x00, 0x01,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV4 UDP */
|
|
static const u8 ice_fdir_udp4_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x42, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0xa8, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x2e,
|
|
0xf3, 0x3a, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x21, 0x45, 0x00, 0x00, 0x1c,
|
|
0x00, 0x01, 0x00, 0x00, 0x40, 0x11, 0x7c, 0xce,
|
|
0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00, 0x00, 0x01,
|
|
0x00, 0x35, 0x00, 0x35, 0x00, 0x08, 0x01, 0x72,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV4 TCP */
|
|
static const u8 ice_fdir_tcp4_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x3a,
|
|
0xf3, 0x23, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x21, 0x45, 0x00, 0x00, 0x28,
|
|
0x00, 0x01, 0x00, 0x00, 0x40, 0x06, 0x7c, 0xcd,
|
|
0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00, 0x00, 0x01,
|
|
0x00, 0x14, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x50, 0x02, 0x20, 0x00,
|
|
0x91, 0x7c, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV6 */
|
|
static const u8 ice_fdir_ipv6_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x9c, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x3a,
|
|
0x59, 0x8e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x57, 0x60, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x3b, 0x40, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV6 UDP */
|
|
static const u8 ice_fdir_udp6_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x94, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x42,
|
|
0x83, 0x91, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x57, 0x60, 0x00, 0x00, 0x00,
|
|
0x00, 0x08, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x35, 0x00, 0x35,
|
|
0x00, 0x08, 0xff, 0x72, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV4 PPPOL2TPV2 IPV6 TCP */
|
|
static const u8 ice_fdir_tcp6_l2tpv2_ppp4_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
|
|
0x7c, 0x88, 0x7f, 0x00, 0x00, 0x01, 0x7f, 0x00,
|
|
0x00, 0x01, 0x06, 0xa5, 0x06, 0xa5, 0x00, 0x4e,
|
|
0x8e, 0x6e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
|
|
0xff, 0x03, 0x00, 0x57, 0x60, 0x00, 0x00, 0x00,
|
|
0x00, 0x14, 0x06, 0x40, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x14, 0x00, 0x50,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x50, 0x02, 0x20, 0x00, 0x8f, 0x7d, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 L2TPV2 control */
|
|
static const u8 ice_fdir_ipv6_l2tpv2_ctrl_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x14, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x14, 0x2a, 0x6c, 0xc8, 0x02,
|
|
0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 L2TPV2 */
|
|
static const u8 ice_fdir_ipv6_l2tpv2_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x14, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x14, 0x2a, 0x6c, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 */
|
|
static const u8 ice_fdir_ipv6_l2tpv2_ppp_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x12, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x12, 0xf3, 0x78, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV4 */
|
|
static const u8 ice_fdir_ipv4_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x26, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x26, 0xf3, 0x2f, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x21,
|
|
0x45, 0x00, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00,
|
|
0x40, 0x00, 0x7c, 0xe7, 0x7f, 0x00, 0x00, 0x01,
|
|
0x7f, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV4 UDP */
|
|
static const u8 ice_fdir_udp4_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x2e, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x2e, 0xf1, 0x3b, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x21,
|
|
0x45, 0x00, 0x00, 0x1c, 0x00, 0x01, 0x00, 0x00,
|
|
0x40, 0x11, 0x7c, 0xce, 0x7f, 0x00, 0x00, 0x01,
|
|
0x7f, 0x00, 0x00, 0x01, 0x00, 0x35, 0x00, 0x35,
|
|
0x00, 0x08, 0x01, 0x72, 0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV4 TCP */
|
|
static const u8 ice_fdir_tcp4_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x3a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x3a, 0xf1, 0x24, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x21,
|
|
0x45, 0x00, 0x00, 0x28, 0x00, 0x01, 0x00, 0x00,
|
|
0x40, 0x06, 0x7c, 0xcd, 0x7f, 0x00, 0x00, 0x01,
|
|
0x7f, 0x00, 0x00, 0x01, 0x00, 0x14, 0x00, 0x50,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x50, 0x02, 0x20, 0x00, 0x91, 0x7c, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV6 */
|
|
static const u8 ice_fdir_ipv6_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x3a, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x3a, 0x57, 0x8f, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x57,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV6 UDP */
|
|
static const u8 ice_fdir_udp6_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x42, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x42, 0x81, 0x92, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x57,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x11, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x35, 0x00, 0x35, 0x00, 0x08, 0xff, 0x72,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
/* IPV6 PPPOL2TPV2 IPV6 TCP */
|
|
static const u8 ice_fdir_tcp6_l2tpv2_ppp6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x4e, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0xa5,
|
|
0x06, 0xa5, 0x00, 0x4e, 0x8c, 0x6f, 0x00, 0x02,
|
|
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x57,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
|
0x00, 0x14, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x50, 0x02, 0x20, 0x00,
|
|
0x8f, 0x7d, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcpv6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x14, 0x06, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x50, 0x00, 0x20, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udpv6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x08, 0x11, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_sctpv6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x0C, 0x84, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ipv6_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x86, 0xDD, 0x60, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x3B, 0x40, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp4_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
0x45, 0x00, 0x00, 0x28, 0x00, 0x00, 0x40, 0x00,
|
|
0x40, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x50, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp4_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x4e, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
0x45, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x40, 0x00,
|
|
0x40, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_sctp4_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x52, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
0x45, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00,
|
|
0x40, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ip4_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x46, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
|
|
0x45, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00,
|
|
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_tcp6_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x6e, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0xdd,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x20, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_udp6_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x62, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0xdd,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x11, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_sctp6_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x66, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0xdd,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x84, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
static const u8 ice_fdir_ip6_tun_pkt[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00,
|
|
0x00, 0x5a, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0xdd,
|
|
0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x40,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* Flow Director no-op training packet table */
|
|
static const struct ice_fdir_base_pkt ice_fdir_pkt[] = {
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_TCP,
|
|
sizeof(ice_fdir_tcpv4_pkt), ice_fdir_tcpv4_pkt,
|
|
sizeof(ice_fdir_tcp4_tun_pkt), ice_fdir_tcp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP,
|
|
sizeof(ice_fdir_udpv4_pkt), ice_fdir_udpv4_pkt,
|
|
sizeof(ice_fdir_udp4_tun_pkt), ice_fdir_udp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_SCTP,
|
|
sizeof(ice_fdir_sctpv4_pkt), ice_fdir_sctpv4_pkt,
|
|
sizeof(ice_fdir_sctp4_tun_pkt), ice_fdir_sctp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_OTHER,
|
|
sizeof(ice_fdir_ipv4_pkt), ice_fdir_ipv4_pkt,
|
|
sizeof(ice_fdir_ip4_tun_pkt), ice_fdir_ip4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_FRAG_IPV4,
|
|
sizeof(ice_fdir_ipv4_frag_pkt), ice_fdir_ipv4_frag_pkt,
|
|
sizeof(ice_fdir_ipv4_frag_pkt), ice_fdir_ipv4_frag_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_FRAG_IPV6,
|
|
sizeof(ice_fdir_ipv6_frag_pkt), ice_fdir_ipv6_frag_pkt,
|
|
sizeof(ice_fdir_ipv6_frag_pkt), ice_fdir_ipv6_frag_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU EH */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU DW */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU UP */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU EH */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU DW */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU UP */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_pkt),
|
|
ice_fdir_udp4_gtpu4_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_pkt),
|
|
ice_fdir_udp4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_pkt),
|
|
ice_fdir_tcp4_gtpu4_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_pkt),
|
|
ice_fdir_tcp4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_pkt),
|
|
ice_fdir_ipv6_gtpu4_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_pkt),
|
|
ice_fdir_ipv6_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_pkt),
|
|
ice_fdir_udp6_gtpu4_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_pkt),
|
|
ice_fdir_udp6_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_pkt),
|
|
ice_fdir_tcp6_gtpu4_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_pkt),
|
|
ice_fdir_tcp6_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_ICMP,
|
|
sizeof(ice_fdir_icmp4_gtpu4_pkt),
|
|
ice_fdir_icmp4_gtpu4_pkt,
|
|
sizeof(ice_fdir_icmp4_gtpu4_pkt),
|
|
ice_fdir_icmp4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_OTHER,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_pkt),
|
|
ice_fdir_ipv4_gtpu4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU,
|
|
sizeof(ice_fdir_ipv6_gtpu6_pkt),
|
|
ice_fdir_ipv6_gtpu6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_pkt),
|
|
ice_fdir_ipv6_gtpu6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_DW,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_dw_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_dw_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_dw_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_dw_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_UP,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_up_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_up_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_up_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_up_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU_IPV6_OTHER,
|
|
sizeof(ice_fdir_ipv6_gtpu6_pkt),
|
|
ice_fdir_ipv6_gtpu6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_pkt),
|
|
ice_fdir_ipv6_gtpu6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_OTHER,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_IPV6_OTHER,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu6_eh_pkt),
|
|
ice_fdir_ipv6_gtpu6_eh_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV3,
|
|
sizeof(ice_fdir_ipv4_l2tpv3_pkt), ice_fdir_ipv4_l2tpv3_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv3_pkt), ice_fdir_ipv4_l2tpv3_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV3,
|
|
sizeof(ice_fdir_ipv6_l2tpv3_pkt), ice_fdir_ipv6_l2tpv3_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv3_pkt), ice_fdir_ipv6_l2tpv3_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_ESP,
|
|
sizeof(ice_fdir_ipv4_esp_pkt), ice_fdir_ipv4_esp_pkt,
|
|
sizeof(ice_fdir_ipv4_esp_pkt), ice_fdir_ipv4_esp_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_ESP,
|
|
sizeof(ice_fdir_ipv6_esp_pkt), ice_fdir_ipv6_esp_pkt,
|
|
sizeof(ice_fdir_ipv6_esp_pkt), ice_fdir_ipv6_esp_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_AH,
|
|
sizeof(ice_fdir_ipv4_ah_pkt), ice_fdir_ipv4_ah_pkt,
|
|
sizeof(ice_fdir_ipv4_ah_pkt), ice_fdir_ipv4_ah_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_AH,
|
|
sizeof(ice_fdir_ipv6_ah_pkt), ice_fdir_ipv6_ah_pkt,
|
|
sizeof(ice_fdir_ipv6_ah_pkt), ice_fdir_ipv6_ah_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_NAT_T_ESP,
|
|
sizeof(ice_fdir_ipv4_nat_t_esp_pkt),
|
|
ice_fdir_ipv4_nat_t_esp_pkt,
|
|
sizeof(ice_fdir_ipv4_nat_t_esp_pkt),
|
|
ice_fdir_ipv4_nat_t_esp_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_NAT_T_ESP,
|
|
sizeof(ice_fdir_ipv6_nat_t_esp_pkt),
|
|
ice_fdir_ipv6_nat_t_esp_pkt,
|
|
sizeof(ice_fdir_ipv6_nat_t_esp_pkt),
|
|
ice_fdir_ipv6_nat_t_esp_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_PFCP_NODE,
|
|
sizeof(ice_fdir_ipv4_pfcp_node_pkt),
|
|
ice_fdir_ipv4_pfcp_node_pkt,
|
|
sizeof(ice_fdir_ipv4_pfcp_node_pkt),
|
|
ice_fdir_ipv4_pfcp_node_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_PFCP_SESSION,
|
|
sizeof(ice_fdir_ipv4_pfcp_session_pkt),
|
|
ice_fdir_ipv4_pfcp_session_pkt,
|
|
sizeof(ice_fdir_ipv4_pfcp_session_pkt),
|
|
ice_fdir_ipv4_pfcp_session_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_PFCP_NODE,
|
|
sizeof(ice_fdir_ipv6_pfcp_node_pkt),
|
|
ice_fdir_ipv6_pfcp_node_pkt,
|
|
sizeof(ice_fdir_ipv6_pfcp_node_pkt),
|
|
ice_fdir_ipv6_pfcp_node_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_PFCP_SESSION,
|
|
sizeof(ice_fdir_ipv6_pfcp_session_pkt),
|
|
ice_fdir_ipv6_pfcp_session_pkt,
|
|
sizeof(ice_fdir_ipv6_pfcp_session_pkt),
|
|
ice_fdir_ipv6_pfcp_session_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NON_IP_L2,
|
|
sizeof(ice_fdir_non_ip_l2_pkt), ice_fdir_non_ip_l2_pkt,
|
|
sizeof(ice_fdir_non_ip_l2_pkt), ice_fdir_non_ip_l2_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN,
|
|
sizeof(ice_fdir_udp4_vxlan_pkt), ice_fdir_udp4_vxlan_pkt,
|
|
sizeof(ice_fdir_udp4_vxlan_pkt), ice_fdir_udp4_vxlan_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_tun_pkt), ice_fdir_udp4_tun_pkt,
|
|
sizeof(ice_fdir_udp4_tun_pkt), ice_fdir_udp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_tun_pkt), ice_fdir_tcp4_tun_pkt,
|
|
sizeof(ice_fdir_tcp4_tun_pkt), ice_fdir_tcp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_SCTP,
|
|
sizeof(ice_fdir_sctp4_tun_pkt), ice_fdir_sctp4_tun_pkt,
|
|
sizeof(ice_fdir_sctp4_tun_pkt), ice_fdir_sctp4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_OTHER,
|
|
sizeof(ice_fdir_ip4_tun_pkt), ice_fdir_ip4_tun_pkt,
|
|
sizeof(ice_fdir_ip4_tun_pkt), ice_fdir_ip4_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_ECPRI_TP0,
|
|
sizeof(ice_fdir_ecpri_tp0_pkt), ice_fdir_ecpri_tp0_pkt,
|
|
sizeof(ice_fdir_ecpri_tp0_pkt), ice_fdir_ecpri_tp0_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_UDP_ECPRI_TP0,
|
|
sizeof(ice_fdir_ipv4_udp_ecpri_tp0_pkt),
|
|
ice_fdir_ipv4_udp_ecpri_tp0_pkt,
|
|
sizeof(ice_fdir_ipv4_udp_ecpri_tp0_pkt),
|
|
ice_fdir_ipv4_udp_ecpri_tp0_pkt,
|
|
},
|
|
/* IPV4 GRE INNER IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4,
|
|
sizeof(ice_fdir_ipv4_gre4_pkt),
|
|
ice_fdir_ipv4_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gre4_pkt),
|
|
ice_fdir_ipv4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gre4_pkt),
|
|
ice_fdir_udp4_gre4_pkt,
|
|
sizeof(ice_fdir_udp4_gre4_pkt),
|
|
ice_fdir_udp4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gre4_pkt),
|
|
ice_fdir_tcp4_gre4_pkt,
|
|
sizeof(ice_fdir_tcp4_gre4_pkt),
|
|
ice_fdir_tcp4_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE INNER IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6,
|
|
sizeof(ice_fdir_ipv6_gre4_pkt),
|
|
ice_fdir_ipv6_gre4_pkt,
|
|
sizeof(ice_fdir_ipv6_gre4_pkt),
|
|
ice_fdir_ipv6_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gre4_pkt),
|
|
ice_fdir_udp6_gre4_pkt,
|
|
sizeof(ice_fdir_udp6_gre4_pkt),
|
|
ice_fdir_udp6_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gre4_pkt),
|
|
ice_fdir_tcp6_gre4_pkt,
|
|
sizeof(ice_fdir_tcp6_gre4_pkt),
|
|
ice_fdir_tcp6_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE INNER IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4,
|
|
sizeof(ice_fdir_ipv4_gre6_pkt),
|
|
ice_fdir_ipv4_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gre6_pkt),
|
|
ice_fdir_ipv4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gre6_pkt),
|
|
ice_fdir_udp4_gre6_pkt,
|
|
sizeof(ice_fdir_udp4_gre6_pkt),
|
|
ice_fdir_udp4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gre6_pkt),
|
|
ice_fdir_tcp4_gre6_pkt,
|
|
sizeof(ice_fdir_tcp4_gre6_pkt),
|
|
ice_fdir_tcp4_gre6_pkt,
|
|
},
|
|
/* IPV4 GRE INNER IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6,
|
|
sizeof(ice_fdir_ipv6_gre6_pkt),
|
|
ice_fdir_ipv6_gre6_pkt,
|
|
sizeof(ice_fdir_ipv6_gre6_pkt),
|
|
ice_fdir_ipv6_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gre6_pkt),
|
|
ice_fdir_udp6_gre6_pkt,
|
|
sizeof(ice_fdir_udp6_gre6_pkt),
|
|
ice_fdir_udp6_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gre6_pkt),
|
|
ice_fdir_tcp6_gre6_pkt,
|
|
sizeof(ice_fdir_tcp6_gre6_pkt),
|
|
ice_fdir_tcp6_gre6_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_gre4_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_gre6_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_gre6_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU EH IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU EH IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_gre4_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU EH IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU EH IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_gre6_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_gre6_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU DW IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU DW IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_gre4_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU DW IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU DW IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_gre6_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_dw_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_dw_gre6_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU UP IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
/* IPV4 GRE IPV4 GTPU UP IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_gre4_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_gre4_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_gre4_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU UP IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv4_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_udp4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_udp4_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_tcp4_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_tcp4_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
/* IPV6 GRE IPV4 GTPU UP IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_ipv6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_ipv6_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_udp6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_udp6_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_gre6_pkt,
|
|
sizeof(ice_fdir_tcp6_gtpu4_eh_up_gre6_pkt),
|
|
ice_fdir_tcp6_gtpu4_eh_up_gre6_pkt,
|
|
},
|
|
/* IPV4 L2TPV2 CONTROL */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_CONTROL,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ctrl_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ctrl_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ctrl_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ctrl_pkt,
|
|
},
|
|
/* IPV4 L2TPV2 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_pkt),
|
|
ice_fdir_ipv4_l2tpv2_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_pkt),
|
|
ice_fdir_ipv4_l2tpv2_pkt,
|
|
},
|
|
/* IPV4 L2TPV2 PPP */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp_pkt,
|
|
},
|
|
/* IPV4 L2TPV2 PPP IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_udp4_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_udp4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_udp4_l2tpv2_ppp4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_tcp4_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_tcp4_l2tpv2_ppp4_pkt),
|
|
ice_fdir_tcp4_l2tpv2_ppp4_pkt,
|
|
},
|
|
/* IPV4 L2TPV2 PPP IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_udp6_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_udp6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_udp6_l2tpv2_ppp4_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_tcp6_l2tpv2_ppp4_pkt,
|
|
sizeof(ice_fdir_tcp6_l2tpv2_ppp4_pkt),
|
|
ice_fdir_tcp6_l2tpv2_ppp4_pkt,
|
|
},
|
|
/* IPV6 L2TPV2 CONTROL */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_CONTROL,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ctrl_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ctrl_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ctrl_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ctrl_pkt,
|
|
},
|
|
/* IPV6 L2TPV2 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_pkt),
|
|
ice_fdir_ipv6_l2tpv2_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_pkt),
|
|
ice_fdir_ipv6_l2tpv2_pkt,
|
|
},
|
|
/* IPV6 L2TPV2 PPP */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp_pkt,
|
|
},
|
|
/* IPV6 L2TPV2 PPP IPV4 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_ipv4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_ipv4_l2tpv2_ppp6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_UDP,
|
|
sizeof(ice_fdir_udp4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_udp4_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_udp4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_udp4_l2tpv2_ppp6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_TCP,
|
|
sizeof(ice_fdir_tcp4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_tcp4_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_tcp4_l2tpv2_ppp6_pkt),
|
|
ice_fdir_tcp4_l2tpv2_ppp6_pkt,
|
|
},
|
|
/* IPV6 L2TPV2 PPP IPV6 */
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_ipv6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_ipv6_l2tpv2_ppp6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_UDP,
|
|
sizeof(ice_fdir_udp6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_udp6_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_udp6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_udp6_l2tpv2_ppp6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_TCP,
|
|
sizeof(ice_fdir_tcp6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_tcp6_l2tpv2_ppp6_pkt,
|
|
sizeof(ice_fdir_tcp6_l2tpv2_ppp6_pkt),
|
|
ice_fdir_tcp6_l2tpv2_ppp6_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_TCP,
|
|
sizeof(ice_fdir_tcpv6_pkt), ice_fdir_tcpv6_pkt,
|
|
sizeof(ice_fdir_tcp6_tun_pkt), ice_fdir_tcp6_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_UDP,
|
|
sizeof(ice_fdir_udpv6_pkt), ice_fdir_udpv6_pkt,
|
|
sizeof(ice_fdir_udp6_tun_pkt), ice_fdir_udp6_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_SCTP,
|
|
sizeof(ice_fdir_sctpv6_pkt), ice_fdir_sctpv6_pkt,
|
|
sizeof(ice_fdir_sctp6_tun_pkt), ice_fdir_sctp6_tun_pkt,
|
|
},
|
|
{
|
|
ICE_FLTR_PTYPE_NONF_IPV6_OTHER,
|
|
sizeof(ice_fdir_ipv6_pkt), ice_fdir_ipv6_pkt,
|
|
sizeof(ice_fdir_ip6_tun_pkt), ice_fdir_ip6_tun_pkt,
|
|
},
|
|
};
|
|
|
|
#define ICE_FDIR_NUM_PKT ARRAY_SIZE(ice_fdir_pkt)
|
|
|
|
/**
|
|
* ice_set_dflt_val_fd_desc
|
|
* @fd_fltr_ctx: pointer to fd filter descriptor
|
|
*/
|
|
void ice_set_dflt_val_fd_desc(struct ice_fd_fltr_desc_ctx *fd_fltr_ctx)
|
|
{
|
|
fd_fltr_ctx->comp_q = ICE_FXD_FLTR_QW0_COMP_Q_ZERO;
|
|
fd_fltr_ctx->comp_report = ICE_FXD_FLTR_QW0_COMP_REPORT_SW_FAIL;
|
|
fd_fltr_ctx->fd_space = ICE_FXD_FLTR_QW0_FD_SPACE_GUAR_BEST;
|
|
fd_fltr_ctx->cnt_ena = ICE_FXD_FLTR_QW0_STAT_ENA_PKTS;
|
|
fd_fltr_ctx->evict_ena = ICE_FXD_FLTR_QW0_EVICT_ENA_TRUE;
|
|
fd_fltr_ctx->toq = ICE_FXD_FLTR_QW0_TO_Q_EQUALS_QINDEX;
|
|
fd_fltr_ctx->toq_prio = ICE_FXD_FLTR_QW0_TO_Q_PRIO1;
|
|
fd_fltr_ctx->dpu_recipe = ICE_FXD_FLTR_QW0_DPU_RECIPE_DFLT;
|
|
fd_fltr_ctx->drop = ICE_FXD_FLTR_QW0_DROP_NO;
|
|
fd_fltr_ctx->flex_prio = ICE_FXD_FLTR_QW0_FLEX_PRI_NONE;
|
|
fd_fltr_ctx->flex_mdid = ICE_FXD_FLTR_QW0_FLEX_MDID0;
|
|
fd_fltr_ctx->flex_val = ICE_FXD_FLTR_QW0_FLEX_VAL0;
|
|
fd_fltr_ctx->dtype = ICE_TX_DESC_DTYPE_FLTR_PROG;
|
|
fd_fltr_ctx->desc_prof_prio = ICE_FXD_FLTR_QW1_PROF_PRIO_ZERO;
|
|
fd_fltr_ctx->desc_prof = ICE_FXD_FLTR_QW1_PROF_ZERO;
|
|
fd_fltr_ctx->swap = ICE_FXD_FLTR_QW1_SWAP_SET;
|
|
fd_fltr_ctx->fdid_prio = ICE_FXD_FLTR_QW1_FDID_PRI_ONE;
|
|
fd_fltr_ctx->fdid_mdid = ICE_FXD_FLTR_QW1_FDID_MDID_FD;
|
|
fd_fltr_ctx->fdid = ICE_FXD_FLTR_QW1_FDID_ZERO;
|
|
}
|
|
|
|
/**
|
|
* ice_set_fd_desc_val
|
|
* @ctx: pointer to fd filter descriptor context
|
|
* @fdir_desc: populated with fd filter descriptor values
|
|
*/
|
|
void
|
|
ice_set_fd_desc_val(struct ice_fd_fltr_desc_ctx *ctx,
|
|
struct ice_fltr_desc *fdir_desc)
|
|
{
|
|
u64 qword;
|
|
|
|
/* prep QW0 of FD filter programming desc */
|
|
qword = ((u64)ctx->qindex << ICE_FXD_FLTR_QW0_QINDEX_S) &
|
|
ICE_FXD_FLTR_QW0_QINDEX_M;
|
|
qword |= ((u64)ctx->comp_q << ICE_FXD_FLTR_QW0_COMP_Q_S) &
|
|
ICE_FXD_FLTR_QW0_COMP_Q_M;
|
|
qword |= ((u64)ctx->comp_report << ICE_FXD_FLTR_QW0_COMP_REPORT_S) &
|
|
ICE_FXD_FLTR_QW0_COMP_REPORT_M;
|
|
qword |= ((u64)ctx->fd_space << ICE_FXD_FLTR_QW0_FD_SPACE_S) &
|
|
ICE_FXD_FLTR_QW0_FD_SPACE_M;
|
|
qword |= ((u64)ctx->cnt_index << ICE_FXD_FLTR_QW0_STAT_CNT_S) &
|
|
ICE_FXD_FLTR_QW0_STAT_CNT_M;
|
|
qword |= ((u64)ctx->cnt_ena << ICE_FXD_FLTR_QW0_STAT_ENA_S) &
|
|
ICE_FXD_FLTR_QW0_STAT_ENA_M;
|
|
qword |= ((u64)ctx->evict_ena << ICE_FXD_FLTR_QW0_EVICT_ENA_S) &
|
|
ICE_FXD_FLTR_QW0_EVICT_ENA_M;
|
|
qword |= ((u64)ctx->toq << ICE_FXD_FLTR_QW0_TO_Q_S) &
|
|
ICE_FXD_FLTR_QW0_TO_Q_M;
|
|
qword |= ((u64)ctx->toq_prio << ICE_FXD_FLTR_QW0_TO_Q_PRI_S) &
|
|
ICE_FXD_FLTR_QW0_TO_Q_PRI_M;
|
|
qword |= ((u64)ctx->dpu_recipe << ICE_FXD_FLTR_QW0_DPU_RECIPE_S) &
|
|
ICE_FXD_FLTR_QW0_DPU_RECIPE_M;
|
|
qword |= ((u64)ctx->drop << ICE_FXD_FLTR_QW0_DROP_S) &
|
|
ICE_FXD_FLTR_QW0_DROP_M;
|
|
qword |= ((u64)ctx->flex_prio << ICE_FXD_FLTR_QW0_FLEX_PRI_S) &
|
|
ICE_FXD_FLTR_QW0_FLEX_PRI_M;
|
|
qword |= ((u64)ctx->flex_mdid << ICE_FXD_FLTR_QW0_FLEX_MDID_S) &
|
|
ICE_FXD_FLTR_QW0_FLEX_MDID_M;
|
|
qword |= ((u64)ctx->flex_val << ICE_FXD_FLTR_QW0_FLEX_VAL_S) &
|
|
ICE_FXD_FLTR_QW0_FLEX_VAL_M;
|
|
fdir_desc->qidx_compq_space_stat = cpu_to_le64(qword);
|
|
|
|
/* prep QW1 of FD filter programming desc */
|
|
qword = ((u64)ctx->dtype << ICE_FXD_FLTR_QW1_DTYPE_S) &
|
|
ICE_FXD_FLTR_QW1_DTYPE_M;
|
|
qword |= ((u64)ctx->pcmd << ICE_FXD_FLTR_QW1_PCMD_S) &
|
|
ICE_FXD_FLTR_QW1_PCMD_M;
|
|
qword |= ((u64)ctx->desc_prof_prio << ICE_FXD_FLTR_QW1_PROF_PRI_S) &
|
|
ICE_FXD_FLTR_QW1_PROF_PRI_M;
|
|
qword |= ((u64)ctx->desc_prof << ICE_FXD_FLTR_QW1_PROF_S) &
|
|
ICE_FXD_FLTR_QW1_PROF_M;
|
|
qword |= ((u64)ctx->fd_vsi << ICE_FXD_FLTR_QW1_FD_VSI_S) &
|
|
ICE_FXD_FLTR_QW1_FD_VSI_M;
|
|
qword |= ((u64)ctx->swap << ICE_FXD_FLTR_QW1_SWAP_S) &
|
|
ICE_FXD_FLTR_QW1_SWAP_M;
|
|
qword |= ((u64)ctx->fdid_prio << ICE_FXD_FLTR_QW1_FDID_PRI_S) &
|
|
ICE_FXD_FLTR_QW1_FDID_PRI_M;
|
|
qword |= ((u64)ctx->fdid_mdid << ICE_FXD_FLTR_QW1_FDID_MDID_S) &
|
|
ICE_FXD_FLTR_QW1_FDID_MDID_M;
|
|
qword |= ((u64)ctx->fdid << ICE_FXD_FLTR_QW1_FDID_S) &
|
|
ICE_FXD_FLTR_QW1_FDID_M;
|
|
fdir_desc->dtype_cmd_vsi_fdid = cpu_to_le64(qword);
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_get_prgm_desc - set a fdir descriptor from a fdir filter struct
|
|
* @hw: pointer to the hardware structure
|
|
* @input: filter
|
|
* @fdesc: filter descriptor
|
|
* @add: if add is true, this is an add operation, false implies delete
|
|
*/
|
|
void
|
|
ice_fdir_get_prgm_desc(struct ice_hw *hw, struct ice_fdir_fltr *input,
|
|
struct ice_fltr_desc *fdesc, bool add)
|
|
{
|
|
struct ice_fd_fltr_desc_ctx fdir_fltr_ctx = { 0 };
|
|
|
|
/* set default context info */
|
|
ice_set_dflt_val_fd_desc(&fdir_fltr_ctx);
|
|
|
|
/* change sideband filtering values */
|
|
fdir_fltr_ctx.fdid = input->fltr_id;
|
|
if (input->dest_ctl == ICE_FLTR_PRGM_DESC_DEST_DROP_PKT) {
|
|
fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_YES;
|
|
fdir_fltr_ctx.qindex = 0;
|
|
} else if (input->dest_ctl ==
|
|
ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER) {
|
|
fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_NO;
|
|
fdir_fltr_ctx.qindex = 0;
|
|
} else {
|
|
if (input->dest_ctl ==
|
|
ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_QGROUP)
|
|
fdir_fltr_ctx.toq = input->q_region;
|
|
fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_NO;
|
|
fdir_fltr_ctx.qindex = input->q_index;
|
|
}
|
|
fdir_fltr_ctx.cnt_ena = input->cnt_ena;
|
|
fdir_fltr_ctx.cnt_index = input->cnt_index;
|
|
fdir_fltr_ctx.fd_vsi = ice_get_hw_vsi_num(hw, input->dest_vsi);
|
|
fdir_fltr_ctx.evict_ena = ICE_FXD_FLTR_QW0_EVICT_ENA_FALSE;
|
|
if (input->dest_ctl == ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER)
|
|
fdir_fltr_ctx.toq_prio = 0;
|
|
else
|
|
fdir_fltr_ctx.toq_prio = 3;
|
|
fdir_fltr_ctx.pcmd = add ? ICE_FXD_FLTR_QW1_PCMD_ADD :
|
|
ICE_FXD_FLTR_QW1_PCMD_REMOVE;
|
|
fdir_fltr_ctx.swap = ICE_FXD_FLTR_QW1_SWAP_NOT_SET;
|
|
fdir_fltr_ctx.comp_q = ICE_FXD_FLTR_QW0_COMP_Q_ZERO;
|
|
fdir_fltr_ctx.comp_report = input->comp_report;
|
|
fdir_fltr_ctx.fdid_prio = input->fdid_prio;
|
|
fdir_fltr_ctx.desc_prof = 1;
|
|
fdir_fltr_ctx.desc_prof_prio = 3;
|
|
ice_set_fd_desc_val(&fdir_fltr_ctx, fdesc);
|
|
}
|
|
|
|
/**
|
|
* ice_alloc_fd_res_cntr - obtain counter resource for FD type
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: returns counter index
|
|
*/
|
|
int ice_alloc_fd_res_cntr(struct ice_hw *hw, u16 *cntr_id)
|
|
{
|
|
return ice_alloc_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_COUNTER_BLOCK,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, 1, cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_free_fd_res_cntr - Free counter resource for FD type
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: counter index to be freed
|
|
*/
|
|
int ice_free_fd_res_cntr(struct ice_hw *hw, u16 cntr_id)
|
|
{
|
|
return ice_free_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_COUNTER_BLOCK,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, 1, cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_alloc_fd_guar_item - allocate resource for FD guaranteed entries
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: returns counter index
|
|
* @num_fltr: number of filter entries to be allocated
|
|
*/
|
|
int
|
|
ice_alloc_fd_guar_item(struct ice_hw *hw, u16 *cntr_id, u16 num_fltr)
|
|
{
|
|
return ice_alloc_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_GUARANTEED_ENTRIES,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, num_fltr,
|
|
cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_free_fd_guar_item - Free flow director guaranteed entries
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: counter index that needs to be freed
|
|
* @num_fltr: number of filters to be freed
|
|
*/
|
|
int
|
|
ice_free_fd_guar_item(struct ice_hw *hw, u16 cntr_id, u16 num_fltr)
|
|
{
|
|
return ice_free_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_GUARANTEED_ENTRIES,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, num_fltr,
|
|
cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_alloc_fd_shrd_item - allocate resource for flow director shared entries
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: returns counter index
|
|
* @num_fltr: number of filter entries to be allocated
|
|
*/
|
|
int
|
|
ice_alloc_fd_shrd_item(struct ice_hw *hw, u16 *cntr_id, u16 num_fltr)
|
|
{
|
|
return ice_alloc_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_SHARED_ENTRIES,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, num_fltr,
|
|
cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_free_fd_shrd_item - Free flow director shared entries
|
|
* @hw: pointer to the hardware structure
|
|
* @cntr_id: counter index that needs to be freed
|
|
* @num_fltr: number of filters to be freed
|
|
*/
|
|
int
|
|
ice_free_fd_shrd_item(struct ice_hw *hw, u16 cntr_id, u16 num_fltr)
|
|
{
|
|
return ice_free_res_cntr(hw, ICE_AQC_RES_TYPE_FDIR_SHARED_ENTRIES,
|
|
ICE_AQC_RES_TYPE_FLAG_DEDICATED, num_fltr,
|
|
cntr_id);
|
|
}
|
|
|
|
/**
|
|
* ice_get_fdir_cnt_all - get the number of Flow Director filters
|
|
* @hw: hardware data structure
|
|
*
|
|
* Returns the number of filters available on device
|
|
*/
|
|
int ice_get_fdir_cnt_all(struct ice_hw *hw)
|
|
{
|
|
return hw->func_caps.fd_fltr_guar + hw->func_caps.fd_fltr_best_effort;
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_ipv6_addr - insert a be32 IPv6 address into a memory buffer.
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @addr: IPv6 address to convert and insert into pkt at offset
|
|
*/
|
|
static void ice_pkt_insert_ipv6_addr(u8 *pkt, int offset, __be32 *addr)
|
|
{
|
|
int idx;
|
|
|
|
for (idx = 0; idx < ICE_IPV6_ADDR_LEN_AS_U32; idx++)
|
|
memcpy(pkt + offset + idx * sizeof(*addr), &addr[idx],
|
|
sizeof(*addr));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_u6_qfi - insert a u6 value qfi into a memory buffer for gtpu
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @data: 8 bit value to convert and insert into pkt at offset
|
|
*
|
|
* This function is designed for inserting qfi (6 bits) for gtpu.
|
|
*/
|
|
static void ice_pkt_insert_u6_qfi(u8 *pkt, int offset, u8 data)
|
|
{
|
|
u8 ret;
|
|
|
|
ret = (data & 0x3F) + (*(pkt + offset) & 0xC0);
|
|
memcpy(pkt + offset, &ret, sizeof(ret));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_u8 - insert a u8 value into a memory buffer.
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @data: 8 bit value to convert and insert into pkt at offset
|
|
*/
|
|
static void ice_pkt_insert_u8(u8 *pkt, int offset, u8 data)
|
|
{
|
|
memcpy(pkt + offset, &data, sizeof(data));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_u8_tc - insert a u8 value into a memory buffer for TC ipv6.
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @data: 8 bit value to convert and insert into pkt at offset
|
|
*
|
|
* This function is designed for inserting Traffic Class (TC) for IPv6,
|
|
* since that TC is not aligned in number of bytes. Here we split it out
|
|
* into two part and fill each byte with data copy from pkt, then insert
|
|
* the two bytes data one by one.
|
|
*/
|
|
static void ice_pkt_insert_u8_tc(u8 *pkt, int offset, u8 data)
|
|
{
|
|
u8 high, low;
|
|
|
|
high = (data >> 4) + (*(pkt + offset) & 0xF0);
|
|
memcpy(pkt + offset, &high, sizeof(high));
|
|
|
|
low = (*(pkt + offset + 1) & 0x0F) + ((data & 0x0F) << 4);
|
|
memcpy(pkt + offset + 1, &low, sizeof(low));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_u16 - insert a be16 value into a memory buffer.
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @data: 16 bit value to convert and insert into pkt at offset
|
|
*/
|
|
static void ice_pkt_insert_u16(u8 *pkt, int offset, __be16 data)
|
|
{
|
|
memcpy(pkt + offset, &data, sizeof(data));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_u32 - insert a be32 value into a memory buffer.
|
|
* @pkt: packet buffer
|
|
* @offset: offset into buffer
|
|
* @data: 32 bit value to convert and insert into pkt at offset
|
|
*/
|
|
static void ice_pkt_insert_u32(u8 *pkt, int offset, __be32 data)
|
|
{
|
|
memcpy(pkt + offset, &data, sizeof(data));
|
|
}
|
|
|
|
/**
|
|
* ice_pkt_insert_mac_addr - insert a MAC addr into a memory buffer.
|
|
* @pkt: packet buffer
|
|
* @addr: MAC address to convert and insert into pkt at offset
|
|
*/
|
|
static void ice_pkt_insert_mac_addr(u8 *pkt, u8 *addr)
|
|
{
|
|
ether_addr_copy(pkt, addr);
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_get_open_tunnel_port
|
|
* @hw: pointer to the hardware structure
|
|
* @flow: flow ptype
|
|
* @port: returns open port
|
|
*
|
|
* returns an open tunnel port specified for this flow type
|
|
*/
|
|
static int
|
|
ice_fdir_get_open_tunnel_port(struct ice_hw *hw, enum ice_fltr_ptype flow,
|
|
u16 *port)
|
|
{
|
|
switch (flow) {
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_ECPRI_TP0:
|
|
/* eCPRI tunnel */
|
|
if (!ice_get_open_tunnel_port(hw, TNL_ECPRI, port))
|
|
return -ENOENT;
|
|
break;
|
|
default:
|
|
if (!ice_get_open_tunnel_port(hw, TNL_VXLAN, port) &&
|
|
!ice_get_open_tunnel_port(hw, TNL_GENEVE, port))
|
|
return -ENOENT;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_gen_l2tpv2_pkt - generate L2TPv2 training packet
|
|
* @pkt: pointer to return filter packet
|
|
* @l2tpv2_data: pointer to ice_fdir_l2tpv2 data structure
|
|
* @idx: the matched packet index of FDIR training packet table
|
|
* @offset: position of end byte for PPPoL2TPv2 packet
|
|
* @tun: true implies generate a tunnel packet
|
|
*/
|
|
static u16
|
|
ice_fdir_gen_l2tpv2_pkt(u8 *pkt, struct ice_fdir_l2tpv2 *l2tpv2_data,
|
|
u16 idx, u16 offset, bool tun)
|
|
{
|
|
u16 flags_version;
|
|
u16 offset_size;
|
|
u16 pos;
|
|
|
|
/* get outer packet end pos, 10 = l2tpv2 default len 6 + ppp len 4 */
|
|
pos = offset - ICE_L2TPV2_PKT_LENGTH - ICE_PPP_PKT_LENGTH;
|
|
|
|
/* copy outer packet */
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt, pos);
|
|
|
|
/* copy l2tpv2 packet common header */
|
|
memcpy(pkt + pos, &l2tpv2_data->flags_version,
|
|
sizeof(l2tpv2_data->flags_version));
|
|
pos += sizeof(l2tpv2_data->flags_version);
|
|
|
|
flags_version = be16_to_cpu(l2tpv2_data->flags_version);
|
|
if (flags_version == 0) {
|
|
l2tpv2_data->flags_version = cpu_to_be16(ICE_L2TPV2_FLAGS_VER);
|
|
flags_version = ICE_L2TPV2_FLAGS_VER;
|
|
}
|
|
|
|
/* copy l2tpv2 length */
|
|
if (flags_version & ICE_L2TPV2_FLAGS_LEN) {
|
|
memcpy(pkt + pos, &l2tpv2_data->length,
|
|
sizeof(l2tpv2_data->length));
|
|
pos += sizeof(l2tpv2_data->length);
|
|
}
|
|
|
|
/* copy l2tpv2 tunnel id */
|
|
memcpy(pkt + pos, &l2tpv2_data->tunnel_id,
|
|
sizeof(l2tpv2_data->tunnel_id));
|
|
pos += sizeof(l2tpv2_data->tunnel_id);
|
|
|
|
/* copy l2tpv2 session id */
|
|
memcpy(pkt + pos, &l2tpv2_data->session_id,
|
|
sizeof(l2tpv2_data->session_id));
|
|
pos += sizeof(l2tpv2_data->session_id);
|
|
|
|
/* copy l2tpv2 ns + nr */
|
|
if (flags_version & ICE_L2TPV2_FLAGS_SEQ) {
|
|
memcpy(pkt + pos, &l2tpv2_data->ns, sizeof(l2tpv2_data->ns));
|
|
pos += sizeof(l2tpv2_data->ns);
|
|
|
|
memcpy(pkt + pos, &l2tpv2_data->nr, sizeof(l2tpv2_data->nr));
|
|
pos += sizeof(l2tpv2_data->nr);
|
|
}
|
|
|
|
/* copy l2tpv2 offset size + offset padding */
|
|
if (flags_version & ICE_L2TPV2_FLAGS_OFF) {
|
|
memcpy(pkt + pos, &l2tpv2_data->offset_size,
|
|
sizeof(l2tpv2_data->offset_size));
|
|
pos += sizeof(l2tpv2_data->offset_size);
|
|
/* insert 0 into offset padding */
|
|
offset_size = be16_to_cpu(l2tpv2_data->offset_size);
|
|
if (offset_size > ICE_FDIR_MAX_RAW_PKT_SIZE -
|
|
ice_fdir_pkt[idx].tun_pkt_len) {
|
|
offset_size = ICE_FDIR_MAX_RAW_PKT_SIZE -
|
|
ice_fdir_pkt[idx].tun_pkt_len;
|
|
}
|
|
memset(pkt + pos, 0, offset_size);
|
|
pos += offset_size;
|
|
}
|
|
|
|
if (ice_fdir_pkt[idx].tun_pkt_len > offset) {
|
|
/* copy ppp packet */
|
|
memcpy(pkt + pos,
|
|
ice_fdir_pkt[idx].tun_pkt + offset - ICE_PPP_PKT_LENGTH,
|
|
ICE_PPP_PKT_LENGTH);
|
|
pos += ICE_PPP_PKT_LENGTH;
|
|
|
|
/* copy inner packets */
|
|
if (tun) {
|
|
memcpy(pkt + pos, ice_fdir_pkt[idx].tun_pkt + offset,
|
|
ice_fdir_pkt[idx].tun_pkt_len - offset);
|
|
}
|
|
}
|
|
|
|
return pos;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_get_gen_prgm_pkt - generate a training packet
|
|
* @hw: pointer to the hardware structure
|
|
* @input: flow director filter data structure
|
|
* @pkt: pointer to return filter packet
|
|
* @frag: generate a fragment packet
|
|
* @tun: true implies generate a tunnel packet
|
|
*/
|
|
int
|
|
ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,
|
|
u8 *pkt, bool frag, bool tun)
|
|
{
|
|
enum ice_fltr_ptype flow;
|
|
u16 tnl_port;
|
|
u8 *loc;
|
|
u16 idx;
|
|
u16 flags_version;
|
|
u16 pos;
|
|
u16 offset;
|
|
|
|
if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV4_OTHER) {
|
|
switch (input->ip.v4.proto) {
|
|
case IPPROTO_TCP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV4_TCP;
|
|
break;
|
|
case IPPROTO_UDP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV4_UDP;
|
|
break;
|
|
case IPPROTO_SCTP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV4_SCTP;
|
|
break;
|
|
default:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV4_OTHER;
|
|
break;
|
|
}
|
|
} else if (input->flow_type == ICE_FLTR_PTYPE_NONF_IPV6_OTHER) {
|
|
switch (input->ip.v6.proto) {
|
|
case IPPROTO_TCP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV6_TCP;
|
|
break;
|
|
case IPPROTO_UDP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV6_UDP;
|
|
break;
|
|
case IPPROTO_SCTP:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV6_SCTP;
|
|
break;
|
|
default:
|
|
flow = ICE_FLTR_PTYPE_NONF_IPV6_OTHER;
|
|
break;
|
|
}
|
|
} else {
|
|
flow = input->flow_type;
|
|
}
|
|
|
|
for (idx = 0; idx < ICE_FDIR_NUM_PKT; idx++)
|
|
if (ice_fdir_pkt[idx].flow == flow)
|
|
break;
|
|
if (idx == ICE_FDIR_NUM_PKT)
|
|
return -EINVAL;
|
|
|
|
if (!tun) {
|
|
switch (flow) {
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_CONTROL:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP:
|
|
offset = ICE_FDIR_IPV4_L2TPV2_PPP_PKT_OFF;
|
|
ice_fdir_gen_l2tpv2_pkt(pkt, &input->l2tpv2_data,
|
|
idx, offset, tun);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_CONTROL:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP:
|
|
offset = ICE_FDIR_IPV6_L2TPV2_PPP_PKT_OFF;
|
|
ice_fdir_gen_l2tpv2_pkt(pkt, &input->l2tpv2_data,
|
|
idx, offset, tun);
|
|
break;
|
|
default:
|
|
memcpy(pkt, ice_fdir_pkt[idx].pkt,
|
|
ice_fdir_pkt[idx].pkt_len);
|
|
break;
|
|
}
|
|
loc = pkt;
|
|
} else {
|
|
if (!ice_fdir_pkt[idx].tun_pkt)
|
|
return -EINVAL;
|
|
|
|
switch (flow) {
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_GTPU_IP_INNER_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_GTPU_EH_INNER_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_IPV4_GRE_INNER_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_IPV6_GRE_INNER_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_V4_V4_GTPOGRE_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_V6_V4_GTPOGRE_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_V4_V4_GTPOGRE_EH_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
loc = &pkt[ICE_FDIR_V6_V4_GTPOGRE_EH_PKT_OFF];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_TCP:
|
|
offset = ICE_FDIR_IPV4_L2TPV2_PPP_PKT_OFF;
|
|
pos = ice_fdir_gen_l2tpv2_pkt(pkt, &input->l2tpv2_data,
|
|
idx, offset, tun);
|
|
loc = &pkt[pos];
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_TCP:
|
|
offset = ICE_FDIR_IPV6_L2TPV2_PPP_PKT_OFF;
|
|
pos = ice_fdir_gen_l2tpv2_pkt(pkt, &input->l2tpv2_data,
|
|
idx, offset, tun);
|
|
loc = &pkt[pos];
|
|
break;
|
|
default:
|
|
if (ice_fdir_get_open_tunnel_port(hw, flow, &tnl_port))
|
|
return -ENOENT;
|
|
|
|
memcpy(pkt, ice_fdir_pkt[idx].tun_pkt,
|
|
ice_fdir_pkt[idx].tun_pkt_len);
|
|
ice_pkt_insert_u16(pkt, ICE_IPV4_UDP_DST_PORT_OFFSET,
|
|
htons(tnl_port));
|
|
loc = &pkt[ICE_FDIR_TUN_PKT_OFF];
|
|
break;
|
|
}
|
|
}
|
|
|
|
/* Reverse the src and dst, since the HW expects them to be from Tx
|
|
* perspective. The input from user is from Rx filter perspective.
|
|
*/
|
|
switch (flow) {
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_TCP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_TCP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_TCP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
if (frag)
|
|
loc[20] = ICE_FDIR_IPV4_PKT_FLAG_MF;
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP:
|
|
ice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(pkt + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip_outer.v4.dst_ip);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip_outer.v4.src_ip);
|
|
ice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET, input->ip_outer.v4.tos);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_UDP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_UDP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data.src_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_SCTP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_SCTP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_SCTP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_OTHER:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_UDP:
|
|
ice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(pkt + ETH_ALEN, input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip_outer.v4.dst_ip);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip_outer.v4.src_ip);
|
|
ice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET, input->ip_outer.v4.tos);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_VXLAN_VNI_OFFSET,
|
|
input->vxlan_data.vni);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_UDP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_UDP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN, input->ext_data.src_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_TCP:
|
|
ice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(pkt + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip_outer.v4.dst_ip);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip_outer.v4.src_ip);
|
|
ice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET,
|
|
input->ip_outer.v4.tos);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_VXLAN_VNI_OFFSET,
|
|
input->vxlan_data.vni);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_TCP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_TCP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data.src_mac);
|
|
if (frag)
|
|
loc[20] = ICE_FDIR_IPV4_PKT_FLAG_MF;
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_SCTP:
|
|
ice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(pkt + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip_outer.v4.dst_ip);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip_outer.v4.src_ip);
|
|
ice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET,
|
|
input->ip_outer.v4.tos);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_VXLAN_VNI_OFFSET,
|
|
input->vxlan_data.vni);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_SCTP_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_SCTP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data.src_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_VXLAN_IPV4_OTHER:
|
|
ice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(pkt + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip_outer.v4.dst_ip);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip_outer.v4.src_ip);
|
|
ice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET,
|
|
input->ip_outer.v4.tos);
|
|
ice_pkt_insert_u32(pkt, ICE_IPV4_VXLAN_VNI_OFFSET,
|
|
input->vxlan_data.vni);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data.src_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_GTPU_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_GTPU_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
ice_pkt_insert_u6_qfi(loc, ICE_IPV4_GTPU_QFI_OFFSET,
|
|
input->gtpu_data.qfi);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_GTPOGRE_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_GTPOGRE_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
ice_pkt_insert_u6_qfi(loc, ICE_IPV4_GTPOGRE_QFI_OFFSET,
|
|
input->gtpu_data.qfi);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_UDP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET, input->ip.v4.ttl);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV4_TCP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET, input->ip.v4.ttl);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v6.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_UDP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET, input->ip.v6.hlim);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP_IPV6_TCP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET, input->ip.v6.hlim);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU_IPV6_OTHER:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_GTPU_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_DW:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_UP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GTPU_EH_IPV6_OTHER:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_GTPU_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
ice_pkt_insert_u6_qfi(loc, ICE_IPV6_GTPU_QFI_OFFSET,
|
|
input->gtpu_data.qfi);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_GTPOGRE_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_DW:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_GTPU_EH_UP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_GTPOGRE_TEID_OFFSET,
|
|
input->gtpu_data.teid);
|
|
ice_pkt_insert_u6_qfi(loc, ICE_IPV6_GTPOGRE_QFI_OFFSET,
|
|
input->gtpu_data.qfi);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV3:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_L2TPV3_SESS_ID_OFFSET,
|
|
input->l2tpv3_data.session_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV3:
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_L2TPV3_SESS_ID_OFFSET,
|
|
input->l2tpv3_data.session_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_ESP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_ESP_SPI_OFFSET,
|
|
input->ip.v4.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_ESP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_ESP_SPI_OFFSET,
|
|
input->ip.v6.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_AH:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_AH_SPI_OFFSET,
|
|
input->ip.v4.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_AH:
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_AH_SPI_OFFSET,
|
|
input->ip.v6.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_NAT_T_ESP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NAT_T_ESP_SPI_OFFSET,
|
|
input->ip.v4.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_NAT_T_ESP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_NAT_T_ESP_SPI_OFFSET,
|
|
input->ip.v6.sec_parm_idx);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_PFCP_NODE:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_PFCP_SESSION:
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_UDP_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_PFCP_NODE:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_PFCP_SESSION:
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_UDP_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NON_IP_L2:
|
|
ice_pkt_insert_u16(loc, ICE_MAC_ETHTYPE_OFFSET,
|
|
input->ext_data.ether_type);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_ECPRI_TP0:
|
|
ice_pkt_insert_u16(loc, ICE_ECPRI_TP0_PC_ID_OFFSET,
|
|
input->ecpri_data.pc_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_UDP_ECPRI_TP0:
|
|
/* Use pkt instead of loc, since PC_ID is in outter part */
|
|
ice_pkt_insert_u16(pkt, ICE_IPV4_UDP_ECPRI_TP0_PC_ID_OFFSET,
|
|
input->ecpri_data.pc_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_TCP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV4_UDP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v6.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_TCP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_GRE_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_GRE_IPV6_UDP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_CONTROL:
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_L2TPV2_LEN_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2:
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP:
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
flags_version = be16_to_cpu(input->l2tpv2_data.flags_version);
|
|
if (flags_version & ICE_L2TPV2_FLAGS_LEN) {
|
|
ice_pkt_insert_u16(loc,
|
|
ICE_IPV4_L2TPV2_LEN_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
} else {
|
|
ice_pkt_insert_u16(loc,
|
|
ICE_IPV4_L2TPV2_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
}
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_CONTROL:
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_L2TPV2_LEN_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP:
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data_outer.dst_mac);
|
|
ice_pkt_insert_mac_addr(loc + ETH_ALEN,
|
|
input->ext_data_outer.src_mac);
|
|
flags_version = be16_to_cpu(input->l2tpv2_data.flags_version);
|
|
if (flags_version & ICE_L2TPV2_FLAGS_LEN) {
|
|
ice_pkt_insert_u16(loc,
|
|
ICE_IPV6_L2TPV2_LEN_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
} else {
|
|
ice_pkt_insert_u16(loc,
|
|
ICE_IPV6_L2TPV2_SESS_ID_OFFSET,
|
|
input->l2tpv2_data.session_id);
|
|
}
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET,
|
|
input->ip.v4.ttl);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_UDP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET,
|
|
input->ip.v4.ttl);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV4_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV4_TCP:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v4.src_port);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP4_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v4.dst_port);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TOS_OFFSET,
|
|
input->ip.v4.tos);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_NO_MAC_TTL_OFFSET,
|
|
input->ip.v4.ttl);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET,
|
|
input->ip.v6.hlim);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_PROTO_OFFSET,
|
|
input->ip.v6.proto);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_UDP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_UDP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_UDP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET,
|
|
input->ip.v6.hlim);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV4_L2TPV2_PPP_IPV6_TCP:
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_L2TPV2_PPP_IPV6_TCP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_NO_MAC_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_TCP6_NO_MAC_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_NO_MAC_TC_OFFSET,
|
|
input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_NO_MAC_HLIM_OFFSET,
|
|
input->ip.v6.hlim);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_TCP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_TCP_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_TCP_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_UDP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_UDP_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_UDP_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_SCTP:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_SCTP_DST_PORT_OFFSET,
|
|
input->ip.v6.src_port);
|
|
ice_pkt_insert_u16(loc, ICE_IPV6_SCTP_SRC_PORT_OFFSET,
|
|
input->ip.v6.dst_port);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_NONF_IPV6_OTHER:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_PROTO_OFFSET,
|
|
input->ip.v6.proto);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_FRAG_IPV4:
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,
|
|
input->ip.v4.src_ip);
|
|
ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET,
|
|
input->ip.v4.dst_ip);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);
|
|
ice_pkt_insert_u16(loc, ICE_IPV4_ID_OFFSET,
|
|
input->ip.v4.packet_id);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);
|
|
ice_pkt_insert_u8(loc, ICE_IPV4_PROTO_OFFSET,
|
|
input->ip.v4.proto);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
break;
|
|
case ICE_FLTR_PTYPE_FRAG_IPV6:
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET,
|
|
input->ip.v6.src_ip);
|
|
ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET,
|
|
input->ip.v6.dst_ip);
|
|
ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc);
|
|
ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim);
|
|
ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);
|
|
ice_pkt_insert_u32(loc, ICE_IPV6_ID_OFFSET,
|
|
input->ip.v6.packet_id);
|
|
break;
|
|
default:
|
|
return -EINVAL;
|
|
}
|
|
|
|
if (input->flex_fltr)
|
|
ice_pkt_insert_u16(loc, input->flex_offset, input->flex_word);
|
|
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_get_prgm_pkt - generate a training packet
|
|
* @input: flow director filter data structure
|
|
* @pkt: pointer to return filter packet
|
|
* @frag: generate a fragment packet
|
|
*/
|
|
int
|
|
ice_fdir_get_prgm_pkt(struct ice_fdir_fltr *input, u8 *pkt, bool frag)
|
|
{
|
|
return ice_fdir_get_gen_prgm_pkt(NULL, input, pkt, frag, false);
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_has_frag - does flow type have 2 ptypes
|
|
* @flow: flow ptype
|
|
*
|
|
* returns true is there is a fragment packet for this ptype
|
|
*/
|
|
bool ice_fdir_has_frag(enum ice_fltr_ptype flow)
|
|
{
|
|
if (flow == ICE_FLTR_PTYPE_FRAG_IPV4 ||
|
|
flow == ICE_FLTR_PTYPE_FRAG_IPV6)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_find_fltr_by_idx - find filter with idx
|
|
* @hw: pointer to hardware structure
|
|
* @fltr_idx: index to find.
|
|
*
|
|
* Returns pointer to filter if found or null
|
|
*/
|
|
struct ice_fdir_fltr *
|
|
ice_fdir_find_fltr_by_idx(struct ice_hw *hw, u32 fltr_idx)
|
|
{
|
|
struct ice_fdir_fltr *rule;
|
|
|
|
list_for_each_entry(rule, &hw->fdir_list_head, fltr_node) {
|
|
/* rule ID found in the list */
|
|
if (fltr_idx == rule->fltr_id)
|
|
return rule;
|
|
if (fltr_idx < rule->fltr_id)
|
|
break;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_list_add_fltr - add a new node to the flow director filter list
|
|
* @hw: hardware structure
|
|
* @fltr: filter node to add to structure
|
|
*/
|
|
void ice_fdir_list_add_fltr(struct ice_hw *hw, struct ice_fdir_fltr *fltr)
|
|
{
|
|
struct ice_fdir_fltr *rule, *parent = NULL;
|
|
|
|
list_for_each_entry(rule, &hw->fdir_list_head, fltr_node) {
|
|
/* rule ID found or pass its spot in the list */
|
|
if (rule->fltr_id >= fltr->fltr_id)
|
|
break;
|
|
parent = rule;
|
|
}
|
|
|
|
if (parent)
|
|
list_add(&fltr->fltr_node, &parent->fltr_node);
|
|
else
|
|
list_add(&fltr->fltr_node, &hw->fdir_list_head);
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_update_cntrs - increment / decrement filter counter
|
|
* @hw: pointer to hardware structure
|
|
* @flow: filter flow type
|
|
* @acl_fltr: true indicates an ACL filter
|
|
* @add: true implies filters added
|
|
*/
|
|
void
|
|
ice_fdir_update_cntrs(struct ice_hw *hw, enum ice_fltr_ptype flow,
|
|
bool acl_fltr, bool add)
|
|
{
|
|
int incr;
|
|
|
|
incr = add ? 1 : -1;
|
|
hw->fdir_active_fltr += incr;
|
|
if (flow == ICE_FLTR_PTYPE_NONF_NONE || flow >= ICE_FLTR_PTYPE_MAX) {
|
|
ice_debug(hw, ICE_DBG_SW, "Unknown filter type %d\n", flow);
|
|
} else {
|
|
if (acl_fltr)
|
|
hw->acl_fltr_cnt[flow] += incr;
|
|
else
|
|
hw->fdir_fltr_cnt[flow] += incr;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_comp_rules_basic - compare 2 filters
|
|
* @a: a Flow Director filter data structure
|
|
* @b: a Flow Director filter data structure
|
|
*
|
|
* Returns true if the filters match
|
|
*/
|
|
bool
|
|
ice_fdir_comp_rules_basic(struct ice_fdir_fltr *a, struct ice_fdir_fltr *b)
|
|
{
|
|
if (a->flow_type != b->flow_type)
|
|
return false;
|
|
if (memcmp(&a->ip, &b->ip, sizeof(a->ip)))
|
|
return false;
|
|
if (memcmp(&a->mask, &b->mask, sizeof(a->mask)))
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_comp_rules_extended - compare 2 filters
|
|
* @a: a Flow Director filter data structure
|
|
* @b: a Flow Director filter data structure
|
|
*
|
|
* Returns true if the filters match
|
|
*/
|
|
bool
|
|
ice_fdir_comp_rules_extended(struct ice_fdir_fltr *a, struct ice_fdir_fltr *b)
|
|
{
|
|
if (!ice_fdir_comp_rules_basic(a, b))
|
|
return false;
|
|
|
|
if (memcmp(&a->gtpu_data, &b->gtpu_data, sizeof(a->gtpu_data)))
|
|
return false;
|
|
if (memcmp(&a->gtpu_mask, &b->gtpu_mask, sizeof(a->gtpu_mask)))
|
|
return false;
|
|
if (memcmp(&a->l2tpv3_data, &b->l2tpv3_data, sizeof(a->l2tpv3_data)))
|
|
return false;
|
|
if (memcmp(&a->l2tpv3_mask, &b->l2tpv3_mask, sizeof(a->l2tpv3_mask)))
|
|
return false;
|
|
if (memcmp(&a->ext_data, &b->ext_data, sizeof(a->ext_data)))
|
|
return false;
|
|
if (memcmp(&a->ext_mask, &b->ext_mask, sizeof(a->ext_mask)))
|
|
return false;
|
|
if (memcmp(&a->ecpri_data, &b->ecpri_data, sizeof(a->ecpri_data)))
|
|
return false;
|
|
if (memcmp(&a->ecpri_mask, &b->ecpri_mask, sizeof(a->ecpri_mask)))
|
|
return false;
|
|
if (memcmp(&a->l2tpv2_data.session_id, &b->l2tpv2_data.session_id,
|
|
sizeof(a->l2tpv2_data.session_id)))
|
|
return false;
|
|
if (memcmp(&a->l2tpv2_mask.session_id, &b->l2tpv2_mask.session_id,
|
|
sizeof(a->l2tpv2_mask.session_id)))
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* ice_fdir_is_dup_fltr - test if filter is already in list for PF
|
|
* @hw: hardware data structure
|
|
* @input: Flow Director filter data structure
|
|
*
|
|
* Returns true if the filter is found in the list
|
|
*/
|
|
bool ice_fdir_is_dup_fltr(struct ice_hw *hw, struct ice_fdir_fltr *input)
|
|
{
|
|
struct ice_fdir_fltr *rule;
|
|
bool ret = false;
|
|
|
|
list_for_each_entry(rule, &hw->fdir_list_head, fltr_node) {
|
|
ret = ice_fdir_comp_rules_basic(rule, input);
|
|
|
|
if (ret) {
|
|
if (rule->fltr_id == input->fltr_id &&
|
|
rule->q_index != input->q_index)
|
|
ret = false;
|
|
else
|
|
break;
|
|
}
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
/**
|
|
* ice_clear_vsi_fd_table - admin command to clear FD table for a VSI
|
|
* @hw: hardware data structure
|
|
* @vsi_num: vsi_num (HW VSI num)
|
|
*
|
|
* Clears FD table entries by issuing admin command (direct, 0x0B06)
|
|
* Must to pass valid vsi_num as returned by "AddVSI".
|
|
*/
|
|
int ice_clear_vsi_fd_table(struct ice_hw *hw, u16 vsi_num)
|
|
{
|
|
struct ice_aqc_clear_fd_table *cmd;
|
|
struct ice_aq_desc desc;
|
|
|
|
cmd = &desc.params.clear_fd_table;
|
|
ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_clear_fd_table);
|
|
cmd->clear_type = CL_FD_VM_VF_TYPE_VSI_IDX;
|
|
|
|
cmd->vsi_index = cpu_to_le16(vsi_num);
|
|
return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
|
|
}
|
|
|
|
/**
|
|
* ice_clear_pf_fd_table - admin command to clear FD table for PF
|
|
* @hw: hardware data structure
|
|
*
|
|
* Clears FD table entries for a PF by issuing admin command (direct, 0x0B06)
|
|
*/
|
|
int ice_clear_pf_fd_table(struct ice_hw *hw)
|
|
{
|
|
struct ice_aqc_clear_fd_table *cmd;
|
|
struct ice_aq_desc desc;
|
|
|
|
cmd = &desc.params.clear_fd_table;
|
|
ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_clear_fd_table);
|
|
cmd->clear_type = CL_FD_VM_VF_TYPE_PF_IDX;
|
|
/* vsi_index must be 0 to clear FD table for a PF */
|
|
cmd->vsi_index = cpu_to_le16(0);
|
|
|
|
return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);
|
|
}
|