svn commit: r328901 - head/sys/dev/etherswitch/arswitch

Adrian Chadd adrian at FreeBSD.org
Mon Feb 5 20:37:30 UTC 2018


Author: adrian
Date: Mon Feb  5 20:37:29 2018
New Revision: 328901
URL: https://svnweb.freebsd.org/changeset/base/328901

Log:
  [arswitch] disable ARP copy-to-CPU port for AR9340 for now.
  
  I'll have to go double check to see if it does indeed pass ARP frames between
  switch ports with this disabled, but it seems required for the CPU port to see
  ARP traffic.
  
  I'll dig into this some more.

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch_9340.c

Modified: head/sys/dev/etherswitch/arswitch/arswitch_9340.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch_9340.c	Mon Feb  5 20:30:53 2018	(r328900)
+++ head/sys/dev/etherswitch/arswitch/arswitch_9340.c	Mon Feb  5 20:37:29 2018	(r328901)
@@ -90,9 +90,11 @@ ar9340_atu_learn_default(struct arswitch_softc *sc)
 	arswitch_modifyreg(sc->sc_dev, AR934X_REG_QM_CTRL,
 	    AR934X_QM_CTRL_ARP_EN, AR934X_QM_CTRL_ARP_EN);
 
+#if 0
 	/* Copy frame to CPU port, not just redirect it */
 	arswitch_modifyreg(sc->sc_dev, AR934X_REG_QM_CTRL,
 	    AR934X_QM_CTRL_ARP_COPY_EN, AR934X_QM_CTRL_ARP_COPY_EN);
+#endif
 
 	return (0);
 }


More information about the svn-src-all mailing list