]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/cxgbe/cxgbe.h
net/cxgbe: support updating RSS hash configuration and key
[dpdk.git] / drivers / net / cxgbe / cxgbe.h
index f9891545533e59155419fe31fd275f756a591e80..555ef26012dd7778ab2dea96526e7b4371ebba84 100644 (file)
 #define CXGBE_MIN_RX_BUFSIZE ETHER_MIN_MTU /* min buf size */
 #define CXGBE_MAX_RX_PKTLEN (9000 + ETHER_HDR_LEN + ETHER_CRC_LEN) /* max pkt */
 
+#define CXGBE_DEFAULT_RSS_KEY_LEN     40 /* 320-bits */
+#define CXGBE_RSS_HF_ALL (ETH_RSS_IPV4 | ETH_RSS_IPV6 | \
+                         ETH_RSS_NONFRAG_IPV4_TCP | \
+                         ETH_RSS_NONFRAG_IPV4_UDP | \
+                         ETH_RSS_NONFRAG_IPV6_TCP | \
+                         ETH_RSS_NONFRAG_IPV6_UDP)
+
 int cxgbe_probe(struct adapter *adapter);
 void cxgbe_get_speed_caps(struct port_info *pi, u32 *speed_caps);
 int cxgbe_up(struct adapter *adap);