Author: rpokala
Date: Sun Oct 25 23:25:53 2020
New Revision: 367046
URL: https://svnweb.freebsd.org/changeset/base/367046

Log:
  MFC r366686:
  
  Allow IP over IB to work with multiple FIBs.
  
  Call M_SETFIB() to make sure the IPoIB packet is directed to the correct
  interface-specific FIB.
  
  This was sufficient to allow general-purpose routing using the default FIB,
  and a separate FIB for routing between IPoIB on ib0 and IPoEthernet on mce0.
  
  Reviewed by:  hselasky
  Obtained from:        Anmol Kumar <anmolk at panasas dot com>
  Sponsored by: Panasas
  Differential Revision:        https://reviews.freebsd.org/D26733

Modified:
  stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
==============================================================================
--- stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c        Sun Oct 
25 21:04:07 2020        (r367045)
+++ stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c        Sun Oct 
25 23:25:53 2020        (r367046)
@@ -1603,6 +1603,8 @@ ipoib_demux(struct ifnet *ifp, struct mbuf *m, u_short
                m_freem(m);
                return;
        }
+       /* Direct packet to correct FIB based on interface config */
+       M_SETFIB(m, ifp->if_fib);
        /*
         * Dispatch frame to upper layer.
         */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to