git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: fix max frame size
[dpdk.git]
/
drivers
/
net
/
ice
/
ice_ethdev.h
diff --git
a/drivers/net/ice/ice_ethdev.h
b/drivers/net/ice/ice_ethdev.h
index
9c29f22
..
f3ed02e
100644
(file)
--- a/
drivers/net/ice/ice_ethdev.h
+++ b/
drivers/net/ice/ice_ethdev.h
@@
-117,6
+117,13
@@
ETH_RSS_NONFRAG_IPV6_OTHER | \
ETH_RSS_L2_PAYLOAD)
ETH_RSS_NONFRAG_IPV6_OTHER | \
ETH_RSS_L2_PAYLOAD)
+/**
+ * The overhead from MTU to max frame size.
+ * Considering QinQ packet, the VLAN tag needs to be counted twice.
+ */
+#define ICE_ETH_OVERHEAD \
+ (ETHER_HDR_LEN + ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE * 2)
+
struct ice_adapter;
/**
struct ice_adapter;
/**