diff options
author | Luiz Otavio O Souza <loos@FreeBSD.org> | 2019-06-28 22:12:43 +0000 |
---|---|---|
committer | Luiz Otavio O Souza <loos@FreeBSD.org> | 2019-06-28 22:12:43 +0000 |
commit | 4e4cedb00bd7391a6dd2432f13d553b7b8298172 (patch) | |
tree | 8caf28625df7f27fdefac4cb15ea0b7696213010 /sys | |
parent | 2d7a5552944846472152cc019865d95e3d34ccd7 (diff) | |
download | src-4e4cedb00bd7391a6dd2432f13d553b7b8298172.tar.gz src-4e4cedb00bd7391a6dd2432f13d553b7b8298172.zip |
Add the 'drop tagged' flag support for ethernet switch ports.
This is intended to drop all 802.1q tagged packets on a port.
Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes:
svn path=/head/; revision=349520
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/etherswitch/etherswitch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/etherswitch.h b/sys/dev/etherswitch/etherswitch.h index 27d07f39e231..de4192470dbb 100644 --- a/sys/dev/etherswitch/etherswitch.h +++ b/sys/dev/etherswitch/etherswitch.h @@ -64,8 +64,10 @@ typedef struct etherswitch_conf etherswitch_conf_t; #define ETHERSWITCH_PORT_DROPUNTAGGED (1 << 4) #define ETHERSWITCH_PORT_DOUBLE_TAG (1 << 5) #define ETHERSWITCH_PORT_INGRESS (1 << 6) +#define ETHERSWITCH_PORT_DROPTAGGED (1 << 7) #define ETHERSWITCH_PORT_FLAGS_BITS \ -"\020\1CPUPORT\2STRIPTAG\3ADDTAG\4FIRSTLOCK\5DROPUNTAGGED\6QinQ\7INGRESS" +"\020\1CPUPORT\2STRIPTAG\3ADDTAG\4FIRSTLOCK\5DROPUNTAGGED\6QinQ\7INGRESS" \ +"\10DROPTAGGED" #define ETHERSWITCH_PORT_MAX_LEDS 3 |