Skip to content

Commit

Permalink
ice: use eth_broadcast_addr() to set broadcast address
Browse files Browse the repository at this point in the history
Use eth_broadcast_addr() to set broadcast address instead of memset().

Signed-off-by: Lu Wei <luwei32@huawei.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
  • Loading branch information
Lu Wei authored and Tony Nguyen committed Jun 30, 2022
1 parent 2639572 commit 0ca8582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ice/ice_tc_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,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
Expand Down

0 comments on commit 0ca8582

Please sign in to comment.