Public bug reported:

SRU Justification:

[Impact]

Today, the mlxbf_gige driver's "open()" routine calls "enable_multicast_rx()"
and leaves the OOB_RX_MAC_FILTER_MULTICAST register (offset 0x0570) at its
default data/mask values. In this default state, the GIGE interface operates
in ALLMULTI mode, so all frames with a destination multicast MAC address pass
through the hardware receive filter. If the network connected to oob_net0 has
lots of multicast traffic not intended for local termination to the BlueField
then driver resources are consumed handling these packets, and in extreme 
cases can result in receive drops at driver level.

[Fix]

The fix updates the logic in the driver's "ndo_set_rx_mode()", which now
programs the hardware receive filters based on the multicast MAC addresses
configured by the stack. The new implementation can support up to three
multicast MAC addresses using two direct-match RX filters and a 48-bit
start/end range. If the stack attempts to configure more than 3 multicast
MAC addresses, then the interface will be programmed in ALLMULTI mode.

[Test Case]

* Boot BF3 and verify configured multicast MACs via "ip maddr show oob_net0"
* Perform traffic tests to that set of multicast MAC:
  a) If number of multicast MACs <= 3, then only multicast traffic to those MACs
     should be permitted
  b) If the number of multicast MACs > 3, then the oob_net0 interface is in
     ALLMULTI mode and will allow all multicast traffic

[Regression Potential]

Low risk, but could potentially impact handling of multicast traffic

** Affects: linux-bluefield (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151223

Title:
  mlxbf_gige: interface defaults to ALLMULTI mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2151223/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to