Author: adrian
Date: Tue Feb  6 08:34:50 2018
New Revision: 328922
URL: https://svnweb.freebsd.org/changeset/base/328922

Log:
  [etherswitch] add initial support for potentially configuring and fetching 
the switch MAC address.
  
  Switches that originate their own frames (eg obvious ones like Pause frames)
  need a MAC address to use to send those frames from.
  
  This API will hopefully begin to allow that to be configurable.

Modified:
  head/sys/dev/etherswitch/etherswitch.h

Modified: head/sys/dev/etherswitch/etherswitch.h
==============================================================================
--- head/sys/dev/etherswitch/etherswitch.h      Tue Feb  6 07:50:30 2018        
(r328921)
+++ head/sys/dev/etherswitch/etherswitch.h      Tue Feb  6 08:34:50 2018        
(r328922)
@@ -48,10 +48,12 @@ typedef struct etherswitch_info etherswitch_info_t;
 #define        ETHERSWITCH_CONF_FLAGS          (1 << 0)
 #define        ETHERSWITCH_CONF_MIRROR         (1 << 1)
 #define        ETHERSWITCH_CONF_VLAN_MODE      (1 << 2)
+#define        ETHERSWITCH_CONF_SWITCH_MACADDR (1 << 3)
 
 struct etherswitch_conf {
        uint32_t        cmd;            /* What to configure */
        uint32_t        vlan_mode;      /* Switch VLAN mode */
+       struct ether_addr switch_macaddr;       /* Switch MAC address */
 };
 typedef struct etherswitch_conf etherswitch_conf_t;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to