Date: Tue, 6 Feb 2018 08:34:50 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328922 - head/sys/dev/etherswitch Message-ID: <201802060834.w168YooN025637@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802060834.w168YooN025637>