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

Function ngbe_vlan_offload_set

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

Source from the content-addressed store, hash-verified

890}
891
892static int
893ngbe_vlan_offload_set(struct rte_eth_dev *dev, int mask)
894{
895 struct ngbe_hw *hw = ngbe_dev_hw(dev);
896
897 if (!hw->adapter_stopped && (mask & RTE_ETH_VLAN_STRIP_MASK)) {
898 PMD_DRV_LOG(ERR, "Please stop port first");
899 return -EPERM;
900 }
901
902 ngbe_config_vlan_strip_on_all_queues(dev, mask);
903
904 ngbe_vlan_offload_config(dev, mask);
905
906 return 0;
907}
908
909static int
910ngbe_dev_configure(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 3

ngbe_dev_hwFunction · 0.85
ngbe_vlan_offload_configFunction · 0.85

Tested by

no test coverage detected