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

Function rte_is_zero_ether_addr

dpdk/lib/net/rte_ether.h:114–119  ·  view source on GitHub ↗

* Check if an Ethernet address is filled with zeros. * * @param ea * A pointer to a ether_addr structure containing the ethernet address * to check. * @return * True (1) if the given ethernet address is filled with zeros; * false (0) otherwise. */

Source from the content-addressed store, hash-verified

112 * false (0) otherwise.
113 */
114static inline int rte_is_zero_ether_addr(const struct rte_ether_addr *ea)
115{
116 const uint16_t *w = (const uint16_t *)ea;
117
118 return (w[0] | w[1] | w[2]) == 0;
119}
120
121/**
122 * Check if an Ethernet address is a unicast address.

Callers 15

eth_dev_mac_restoreFunction · 0.85
rte_eth_dev_mac_addr_addFunction · 0.85
eth_dev_handle_port_macsFunction · 0.85
atl_add_mac_addrFunction · 0.85
eth_igbvf_dev_initFunction · 0.85
igb_vf_set_mac_addrFunction · 0.85
mlx4_set_mc_addr_listFunction · 0.85
mlx4_flow_internalFunction · 0.85
virtio_mac_addr_addFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_ether_addrFunction · 0.68