numam-dpdk/drivers
Viacheslav Ovsiienko e9a8ac59b6 common/mlx5: fix MAC addresses assert
The MLX5 device supports up to MLX5_MAX_MAC_ADDRESSES (256) MAC
addresses.  The code flushes all MAC devices.

If DPDK is compiled with MLX5_DEBUG this would an assert.
PANIC in mlx5_nl_mac_addr_flush():
line 775	assert "(size_t)(i) < sizeof(mac_own) * 8" failed

The root cause is that mac_own is a pointer and is being used as
a bitmap array. The sizeof(mac_own) would therefore be 64 but the
number of entries to be flushed would be 256.

There is a whole set of asserts in MLX5 netlink code with
the same bug; that should just be changed into proper error checks.

Fixes: 8e46d4e18f ("common/mlx5: improve assert control")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-05-18 20:35:57 +02:00
..
baseband baseband/fpga_5gnr_fec: support interrupt 2020-04-19 22:34:26 +02:00
bus bus/fslmc: fix size of qman fq descriptor 2020-05-11 22:27:39 +02:00
common common/mlx5: fix MAC addresses assert 2020-05-18 20:35:57 +02:00
compress fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
crypto crypto/virtio: enable OOP feature flag 2020-05-17 16:10:44 +02:00
event event/dsw: fix enqueue burst return value 2020-05-14 09:15:37 +02:00
mempool mempool/octeontx2: mark internal symbols 2020-05-18 17:29:24 +02:00
net net/mlx5: fix shared flow counter lookup 2020-05-18 20:35:57 +02:00
raw drivers: enhance DPAA2 portal allocation error logs 2020-05-11 22:27:39 +02:00
vdpa vdpa/mlx5: fix PCI address comparison 2020-05-05 15:54:26 +02:00
Makefile drivers: add crypto as dependency for event drivers 2020-03-05 14:22:11 +01:00
meson.build build: add internal tag check 2020-04-25 17:01:01 +02:00