* 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. */
| 112 | * false (0) otherwise. |
| 113 | */ |
| 114 | static 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. |
no outgoing calls