Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: msaitoh
Date: Wed Jul 17 03:26:24 UTC 2019
Modified Files:
src/sbin/ifconfig: ether.c
src/sys/dev/pci/ixgbe: ixgbe.c ixgbe.h ixv.c
src/sys/net: if_ether.h if_ethersubr.c if_vlan.c
Log Message:
Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER).
First proposed by jmcneill in 2017 and modified by me.
How to use:
- Set callback function:
ether_set_vlan_cb(struct ethercom *, ether_vlancb_t)
- Callback. This function is called when a vlan is attached/detached to the
parent interface:
int (*ether_vlancb_t)(struct ethercom *ec, uint16_t vlanid, bool set);
- ifconfig(8)
ifconfig ixg0 [-]vlan-hwfilter
Note that ETHERCAP_VLAN_HWFILTER is set by default on ixg(4) because
the PF driver usually enable "all block" filter by default.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sbin/ifconfig/ether.c
cvs rdiff -u -r1.192 -r1.193 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/pci/ixgbe/ixgbe.h
cvs rdiff -u -r1.119 -r1.120 src/sys/dev/pci/ixgbe/ixv.c
cvs rdiff -u -r1.80 -r1.81 src/sys/net/if_ether.h
cvs rdiff -u -r1.275 -r1.276 src/sys/net/if_ethersubr.c
cvs rdiff -u -r1.140 -r1.141 src/sys/net/if_vlan.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index