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

Function ixgbevf_vlan_offload_config

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:5761–5778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5759}
5760
5761static int
5762ixgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask)
5763{
5764 struct ixgbe_rx_queue *rxq;
5765 uint16_t i;
5766 int on = 0;
5767
5768 /* VF function only support hw strip feature, others are not support */
5769 if (mask & RTE_ETH_VLAN_STRIP_MASK) {
5770 for (i = 0; i < dev->data->nb_rx_queues; i++) {
5771 rxq = dev->data->rx_queues[i];
5772 on = !!(rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
5773 ixgbevf_vlan_strip_queue_set(dev, i, on);
5774 }
5775 }
5776
5777 return 0;
5778}
5779
5780static int
5781ixgbevf_vlan_offload_set(struct rte_eth_dev *dev, int mask)

Callers 2

ixgbevf_dev_startFunction · 0.85
ixgbevf_vlan_offload_setFunction · 0.85

Calls 1

Tested by

no test coverage detected