net/avf: fix offload capabilities
There are several tx/rx offload capabilities missing in AVF.
Add them in this patch since AVF supports them.
Fixes: 69dd4c3d08
("net/avf: enable queue and device")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
This commit is contained in:
parent
21ecd2d7ab
commit
5ce4c2be1a
@ -518,16 +518,30 @@ avf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
|
|||||||
dev_info->max_mac_addrs = AVF_NUM_MACADDR_MAX;
|
dev_info->max_mac_addrs = AVF_NUM_MACADDR_MAX;
|
||||||
dev_info->rx_offload_capa =
|
dev_info->rx_offload_capa =
|
||||||
DEV_RX_OFFLOAD_VLAN_STRIP |
|
DEV_RX_OFFLOAD_VLAN_STRIP |
|
||||||
|
DEV_RX_OFFLOAD_QINQ_STRIP |
|
||||||
DEV_RX_OFFLOAD_IPV4_CKSUM |
|
DEV_RX_OFFLOAD_IPV4_CKSUM |
|
||||||
DEV_RX_OFFLOAD_UDP_CKSUM |
|
DEV_RX_OFFLOAD_UDP_CKSUM |
|
||||||
DEV_RX_OFFLOAD_TCP_CKSUM;
|
DEV_RX_OFFLOAD_TCP_CKSUM |
|
||||||
|
DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM |
|
||||||
|
DEV_RX_OFFLOAD_CRC_STRIP |
|
||||||
|
DEV_RX_OFFLOAD_KEEP_CRC |
|
||||||
|
DEV_RX_OFFLOAD_SCATTER |
|
||||||
|
DEV_RX_OFFLOAD_JUMBO_FRAME |
|
||||||
|
DEV_RX_OFFLOAD_VLAN_FILTER;
|
||||||
dev_info->tx_offload_capa =
|
dev_info->tx_offload_capa =
|
||||||
DEV_TX_OFFLOAD_VLAN_INSERT |
|
DEV_TX_OFFLOAD_VLAN_INSERT |
|
||||||
|
DEV_TX_OFFLOAD_QINQ_INSERT |
|
||||||
DEV_TX_OFFLOAD_IPV4_CKSUM |
|
DEV_TX_OFFLOAD_IPV4_CKSUM |
|
||||||
DEV_TX_OFFLOAD_UDP_CKSUM |
|
DEV_TX_OFFLOAD_UDP_CKSUM |
|
||||||
DEV_TX_OFFLOAD_TCP_CKSUM |
|
DEV_TX_OFFLOAD_TCP_CKSUM |
|
||||||
DEV_TX_OFFLOAD_SCTP_CKSUM |
|
DEV_TX_OFFLOAD_SCTP_CKSUM |
|
||||||
DEV_TX_OFFLOAD_TCP_TSO;
|
DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |
|
||||||
|
DEV_TX_OFFLOAD_TCP_TSO |
|
||||||
|
DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
|
||||||
|
DEV_TX_OFFLOAD_GRE_TNL_TSO |
|
||||||
|
DEV_TX_OFFLOAD_IPIP_TNL_TSO |
|
||||||
|
DEV_TX_OFFLOAD_GENEVE_TNL_TSO |
|
||||||
|
DEV_TX_OFFLOAD_MULTI_SEGS;
|
||||||
|
|
||||||
dev_info->default_rxconf = (struct rte_eth_rxconf) {
|
dev_info->default_rxconf = (struct rte_eth_rxconf) {
|
||||||
.rx_free_thresh = AVF_DEFAULT_RX_FREE_THRESH,
|
.rx_free_thresh = AVF_DEFAULT_RX_FREE_THRESH,
|
||||||
|
Loading…
Reference in New Issue
Block a user