aboutsummaryrefslogtreecommitdiff
path: root/src/net/vlan.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-12-01 18:46:50 +0000
committerMichael Brown <mcb30@ipxe.org>2010-12-01 18:46:50 +0000
commit5273c2748cbe48ad1fdc19d5f3026b3f10fa5057 (patch)
treed716108217b1d20338eb36697cab42b49553543e /src/net/vlan.c
parent51a9e517f28a540d38f8da9f70607e4d8e9ffed5 (diff)
downloadipxe-5273c2748cbe48ad1fdc19d5f3026b3f10fa5057.zip
ipxe-5273c2748cbe48ad1fdc19d5f3026b3f10fa5057.tar.gz
ipxe-5273c2748cbe48ad1fdc19d5f3026b3f10fa5057.tar.bz2
[vlan] Expose vlan_find() to network card drivers
Some network cards automatically strip the VLAN header, providing the VLAN tag via a side channel such as a completion queue entry. These cards need to be able to report receive completions directly against the relevant VLAN device. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/vlan.c')
-rw-r--r--src/net/vlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/vlan.c b/src/net/vlan.c
index 4440fd8..9ac560f 100644
--- a/src/net/vlan.c
+++ b/src/net/vlan.c
@@ -193,8 +193,7 @@ static void vlan_sync ( struct net_device *netdev ) {
* @v tag VLAN tag
* @ret netdev VLAN device, if any
*/
-static struct net_device * vlan_find ( struct net_device *trunk,
- uint16_t tag ) {
+struct net_device * vlan_find ( struct net_device *trunk, unsigned int tag ) {
struct net_device *netdev;
struct vlan_device *vlan;