@@ -2360,11 +2360,6 @@ enum {
2360
2360
#define IXGBE_TXD_CMD_VLE 0x40000000 /* Add VLAN tag */
2361
2361
#define IXGBE_TXD_STAT_DD 0x00000001 /* Descriptor Done */
2362
2362
2363
- #define IXGBE_RXDADV_IPSEC_STATUS_SECP 0x00020000
2364
- #define IXGBE_RXDADV_IPSEC_ERROR_INVALID_PROTOCOL 0x08000000
2365
- #define IXGBE_RXDADV_IPSEC_ERROR_INVALID_LENGTH 0x10000000
2366
- #define IXGBE_RXDADV_IPSEC_ERROR_AUTH_FAILED 0x18000000
2367
- #define IXGBE_RXDADV_IPSEC_ERROR_BIT_MASK 0x18000000
2368
2363
/* Multiple Transmit Queue Command Register */
2369
2364
#define IXGBE_MTQC_RT_ENA 0x1 /* DCB Enable */
2370
2365
#define IXGBE_MTQC_VT_ENA 0x2 /* VMDQ2 Enable */
@@ -2416,6 +2411,9 @@ enum {
2416
2411
#define IXGBE_RXDADV_ERR_LE 0x02000000 /* Length Error */
2417
2412
#define IXGBE_RXDADV_ERR_PE 0x08000000 /* Packet Error */
2418
2413
#define IXGBE_RXDADV_ERR_OSE 0x10000000 /* Oversize Error */
2414
+ #define IXGBE_RXDADV_ERR_IPSEC_INV_PROTOCOL 0x08000000 /* overlap ERR_PE */
2415
+ #define IXGBE_RXDADV_ERR_IPSEC_INV_LENGTH 0x10000000 /* overlap ERR_OSE */
2416
+ #define IXGBE_RXDADV_ERR_IPSEC_AUTH_FAILED 0x18000000
2419
2417
#define IXGBE_RXDADV_ERR_USE 0x20000000 /* Undersize Error */
2420
2418
#define IXGBE_RXDADV_ERR_TCPE 0x40000000 /* TCP/UDP Checksum Error */
2421
2419
#define IXGBE_RXDADV_ERR_IPE 0x80000000 /* IP Checksum Error */
@@ -2437,6 +2435,7 @@ enum {
2437
2435
#define IXGBE_RXDADV_STAT_FCSTAT_FCPRSP 0x00000020 /* 10: Recv. FCP_RSP */
2438
2436
#define IXGBE_RXDADV_STAT_FCSTAT_DDP 0x00000030 /* 11: Ctxt w/ DDP */
2439
2437
#define IXGBE_RXDADV_STAT_TS 0x00010000 /* IEEE 1588 Time Stamp */
2438
+ #define IXGBE_RXDADV_STAT_SECP 0x00020000 /* IPsec/MACsec pkt found */
2440
2439
2441
2440
/* PSRTYPE bit definitions */
2442
2441
#define IXGBE_PSRTYPE_TCPHDR 0x00000010
@@ -2503,13 +2502,6 @@ enum {
2503
2502
#define IXGBE_RXDADV_PKTTYPE_ETQF_MASK 0x00000070 /* ETQF has 8 indices */
2504
2503
#define IXGBE_RXDADV_PKTTYPE_ETQF_SHIFT 4 /* Right-shift 4 bits */
2505
2504
2506
- /* Security Processing bit Indication */
2507
- #define IXGBE_RXDADV_LNKSEC_STATUS_SECP 0x00020000
2508
- #define IXGBE_RXDADV_LNKSEC_ERROR_NO_SA_MATCH 0x08000000
2509
- #define IXGBE_RXDADV_LNKSEC_ERROR_REPLAY_ERROR 0x10000000
2510
- #define IXGBE_RXDADV_LNKSEC_ERROR_BIT_MASK 0x18000000
2511
- #define IXGBE_RXDADV_LNKSEC_ERROR_BAD_SIG 0x18000000
2512
-
2513
2505
/* Masks to determine if packets should be dropped due to frame errors */
2514
2506
#define IXGBE_RXD_ERR_FRAME_ERR_MASK ( \
2515
2507
IXGBE_RXD_ERR_CE | \
@@ -2523,6 +2515,8 @@ enum {
2523
2515
IXGBE_RXDADV_ERR_LE | \
2524
2516
IXGBE_RXDADV_ERR_PE | \
2525
2517
IXGBE_RXDADV_ERR_OSE | \
2518
+ IXGBE_RXDADV_ERR_IPSEC_INV_PROTOCOL | \
2519
+ IXGBE_RXDADV_ERR_IPSEC_INV_LENGTH | \
2526
2520
IXGBE_RXDADV_ERR_USE)
2527
2521
2528
2522
/* Multicast bit mask */
@@ -2932,6 +2926,7 @@ struct ixgbe_adv_tx_context_desc {
2932
2926
IXGBE_ADVTXD_POPTS_SHIFT)
2933
2927
#define IXGBE_ADVTXD_POPTS_TXSM (IXGBE_TXD_POPTS_TXSM << \
2934
2928
IXGBE_ADVTXD_POPTS_SHIFT)
2929
+ #define IXGBE_ADVTXD_POPTS_IPSEC 0x00000400 /* IPSec offload request */
2935
2930
#define IXGBE_ADVTXD_POPTS_ISCO_1ST 0x00000000 /* 1st TSO of iSCSI PDU */
2936
2931
#define IXGBE_ADVTXD_POPTS_ISCO_MDL 0x00000800 /* Middle TSO of iSCSI PDU */
2937
2932
#define IXGBE_ADVTXD_POPTS_ISCO_LAST 0x00001000 /* Last TSO of iSCSI PDU */
@@ -2947,7 +2942,6 @@ struct ixgbe_adv_tx_context_desc {
2947
2942
#define IXGBE_ADVTXD_TUCMD_L4T_SCTP 0x00001000 /* L4 Packet TYPE of SCTP */
2948
2943
#define IXGBE_ADVTXD_TUCMD_L4T_RSV 0x00001800 /* RSV L4 Packet TYPE */
2949
2944
#define IXGBE_ADVTXD_TUCMD_MKRREQ 0x00002000 /*Req requires Markers and CRC*/
2950
- #define IXGBE_ADVTXD_POPTS_IPSEC 0x00000400 /* IPSec offload request */
2951
2945
#define IXGBE_ADVTXD_TUCMD_IPSEC_TYPE_ESP 0x00002000 /* IPSec Type ESP */
2952
2946
#define IXGBE_ADVTXD_TUCMD_IPSEC_ENCRYPT_EN 0x00004000/* ESP Encrypt Enable */
2953
2947
#define IXGBE_ADVTXT_TUCMD_FCOE 0x00008000 /* FCoE Frame Type */
0 commit comments