summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_defs.h
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2018-04-23 13:09:27 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-04-27 17:34:43 +0100
commit18c01b98b554fd5bab26e519aaacbd1e94465931 (patch)
tree0306df603107cc1dc75f3389ffef6d0a757c1076 /drivers/net/mlx5/mlx5_defs.h
parentfa80b3c9edfe4eaf05bea799e12b4679aceb4cbe (diff)
downloaddpdk-next-eventdev-18c01b98b554fd5bab26e519aaacbd1e94465931.zip
dpdk-next-eventdev-18c01b98b554fd5bab26e519aaacbd1e94465931.tar.gz
dpdk-next-eventdev-18c01b98b554fd5bab26e519aaacbd1e94465931.tar.xz
net/mlx5: split MAC address add/remove code
Move some code in DPDK callbacks to add/remove MAC addresses to internal function. This modification will be necessary to handle implement the devop set_mc_addr_list. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_defs.h')
-rw-r--r--drivers/net/mlx5/mlx5_defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index 3fb2f14..e3aa03b 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -13,8 +13,10 @@
/* Reported driver name. */
#define MLX5_DRIVER_NAME "net_mlx5"
+/* Maximum number of simultaneous unicast MAC addresses. */
+#define MLX5_MAX_UC_MAC_ADDRESSES 128
/* Maximum number of simultaneous MAC addresses. */
-#define MLX5_MAX_MAC_ADDRESSES 128
+#define MLX5_MAX_MAC_ADDRESSES MLX5_MAX_UC_MAC_ADDRESSES
/* Maximum number of simultaneous VLAN filters. */
#define MLX5_MAX_VLAN_IDS 128