ice: use eth_broadcast_addr() to set broadcast address
Subsystems (3)
PATCH 1/1 ice: use eth_broadcast_addr() to set broadcast address
Use eth_broadcast_addr() to set broadcast address instead of memset().
Signed-off-by Lu Wei <[email protected]>
--- drivers/net/ethernet/intel/ice/ice_tc_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_tc_lib.c +1 -1
@@ -1191,7 +1191,7 @@ ice_handle_tclass_action(struct ice_vsi *vsi, ICE_TC_FLWR_FIELD_ENC_DST_MAC)) {ether_addr_copy (fltr->outer_headers.l2_key.dst_mac, vsi->netdev->dev_addr); -memset (fltr->outer_headers.l2_mask.dst_mac,0xff ,ETH_ALEN ); +eth_broadcast_addr (fltr->outer_headers.l2_mask.dst_mac); }/* validate specified dest MAC address, make sure either it belongs to
Signature · 1 line
2.17.1