mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
[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.
This commit is contained in:
parent
4b07a5606c
commit
15bd1a867e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328922
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue