nvethernet: use L2 filter command to set MAC address

Issue:
1) Missing support for packet MC/BC packet duplication
2) Remove MAC UC and BC address on ether_close()

Fix:
1) Update OSI_CMD_L2_FILTER structure parameter to support
new algorithm.
2) MAC UC and BC address added to filter from ether_open()
and ether_resume() function.
3) Configure MAC register to support MC/BC packet
duplication

Bug 200711542
Bug 200711544
Bug 200713215

Change-Id: Ie589892de121e5873f5dfa9b9db9bf5c441ece71
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2519591
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
This commit is contained in:
Rakesh Goyal
2021-03-23 15:03:53 +05:30
committed by Revanth Kumar Uppala
parent 90a4dce1fb
commit 32ed166339
2 changed files with 210 additions and 13 deletions

View File

@@ -147,6 +147,14 @@
*/
#define IVC_CHANNEL_TIMEOUT_CNT 50
/**
* @brief Broadcast and MAC address macros
*/
#define ETHER_MAC_ADDRESS_INDEX 1
#define ETHER_BC_ADDRESS_INDEX 0
#define ETHER_ADDRESS_MAC 1
#define ETHER_ADDRESS_BC 0
/**
* @brief Check if Tx data buffer length is within bounds.
*