[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
@ -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…
x
Reference in New Issue
Block a user