Commit 0ca85829 authored by Lu Wei's avatar Lu Wei Committed by Tony Nguyen

ice: use eth_broadcast_addr() to set broadcast address

Use eth_broadcast_addr() to set broadcast address instead of memset().
Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 26395726
...@@ -1256,7 +1256,7 @@ ice_handle_tclass_action(struct ice_vsi *vsi, ...@@ -1256,7 +1256,7 @@ ice_handle_tclass_action(struct ice_vsi *vsi,
ICE_TC_FLWR_FIELD_ENC_DST_MAC)) { ICE_TC_FLWR_FIELD_ENC_DST_MAC)) {
ether_addr_copy(fltr->outer_headers.l2_key.dst_mac, ether_addr_copy(fltr->outer_headers.l2_key.dst_mac,
vsi->netdev->dev_addr); 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 /* validate specified dest MAC address, make sure either it belongs to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment