MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txgbevf_vlan_offload_config

Function txgbevf_vlan_offload_config

dpdk/drivers/net/txgbe/txgbe_ethdev_vf.c:899–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899static int
900txgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask)
901{
902 struct txgbe_rx_queue *rxq;
903 uint16_t i;
904 int on = 0;
905
906 /* VF function only support hw strip feature, others are not support */
907 if (mask & RTE_ETH_VLAN_STRIP_MASK) {
908 for (i = 0; i < dev->data->nb_rx_queues; i++) {
909 rxq = dev->data->rx_queues[i];
910 on = !!(rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
911 txgbevf_vlan_strip_q_set(dev, i, on);
912 }
913 }
914
915 return 0;
916}
917
918static int
919txgbevf_vlan_offload_set(struct rte_eth_dev *dev, int mask)

Callers 2

txgbevf_dev_startFunction · 0.85
txgbevf_vlan_offload_setFunction · 0.85

Calls 1

txgbevf_vlan_strip_q_setFunction · 0.85

Tested by

no test coverage detected