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

Function ngbe_vlan_hw_strip_config

dpdk/drivers/net/ngbe/ngbe_ethdev.c:819–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819void
820ngbe_vlan_hw_strip_config(struct rte_eth_dev *dev)
821{
822 struct ngbe_rx_queue *rxq;
823 uint16_t i;
824
825 PMD_INIT_FUNC_TRACE();
826
827 for (i = 0; i < dev->data->nb_rx_queues; i++) {
828 rxq = dev->data->rx_queues[i];
829
830 if (rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP)
831 ngbe_vlan_strip_q_set(dev, i, 1);
832 else
833 ngbe_vlan_strip_q_set(dev, i, 0);
834 }
835}
836
837void
838ngbe_config_vlan_strip_on_all_queues(struct rte_eth_dev *dev, int mask)

Callers 2

ngbe_vlan_offload_configFunction · 0.85
ngbe_set_rx_modeFunction · 0.85

Calls 1

ngbe_vlan_strip_q_setFunction · 0.85

Tested by

no test coverage detected