]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/thunderx/base/nicvf_hw_defs.h
crypto/aesni_gcm: support in-place chained mbufs
[dpdk.git] / drivers / net / thunderx / base / nicvf_hw_defs.h
index b13c21fff9543d8516c94ea21421018174f76e90..b12c8ec50a323e7078d4ed3a5e411d30b1fe7347 100644 (file)
 
 /* Min/Max packet size */
 #define NIC_HW_MIN_FRS                  (64)
 
 /* Min/Max packet size */
 #define NIC_HW_MIN_FRS                  (64)
-#define NIC_HW_MAX_FRS                  (9200) /* 9216 max pkt including FCS */
+/* ETH_HLEN+ETH_FCS_LEN+2*VLAN_HLEN */
+#define NIC_HW_L2_OVERHEAD              (26)
+#define NIC_HW_MAX_MTU                  (9190)
+#define NIC_HW_MAX_FRS                  (NIC_HW_MAX_MTU + NIC_HW_L2_OVERHEAD)
 #define NIC_HW_MAX_SEGS                 (12)
 
 /* Descriptor alignments */
 #define NIC_HW_MAX_SEGS                 (12)
 
 /* Descriptor alignments */