Browse Source

MFC r362271:

Allow multicast packets to be received in promiscious mode, in mlx4en(4).

Make sure we disable the multicast filter in promiscious mode aswell as when
the all multicast flag is set.

Found by:	Tycho Nightingale <tychon@freebsd.org>
Sponsored by:	Mellanox Technologies
remotes/github/freebsd/12-stable/master
hselasky 1 month ago
parent
commit
7d38032fff
Notes: hselasky 1 month ago
svn path=/stable/12/; revision=362570
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c

+ 5
- 3
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c View File

@@ -852,9 +852,11 @@ static void mlx4_en_do_multicast(struct mlx4_en_priv *priv,
int err = 0;
u64 mcast_addr = 0;


/* Enable/disable the multicast filter according to IFF_ALLMULTI */
if (dev->if_flags & IFF_ALLMULTI) {
/*
* Enable/disable the multicast filter according to
* IFF_ALLMULTI and IFF_PROMISC:
*/
if (dev->if_flags & (IFF_ALLMULTI | IFF_PROMISC)) {
err = mlx4_SET_MCAST_FLTR(mdev->dev, priv->port, 0,
0, MLX4_MCAST_DISABLE);
if (err)

Loading…
Cancel
Save