summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-05-02 16:53:33 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-02 16:53:33 -0700
commitae4f8fca4030a4e783fa4ccb0c9d8d8a8cf60a32 (patch)
treed2886fa956395043efa25bd1aebb93da27162b78 /include
parent920e37f76b19b4a3d8a1a3144cd6ee24e0e7f5b4 (diff)
downloadop-kernel-dev-ae4f8fca4030a4e783fa4ccb0c9d8d8a8cf60a32.zip
op-kernel-dev-ae4f8fca4030a4e783fa4ccb0c9d8d8a8cf60a32.tar.gz
bridge: forwarding table information for >256 devices
The forwarding table binary interface (my bad choice), only exposes the port number of the first 8 bits. The bridge code was limited to 256 ports at the time, but now the kernel supports up 1024 ports, so the upper bits are lost when doing: brctl showmacs The fix is to squeeze the extra bits into small hole left in data structure, to maintain binary compatiablity. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_bridge.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h
index 58e43e5..950e13d 100644
--- a/include/linux/if_bridge.h
+++ b/include/linux/if_bridge.h
@@ -97,7 +97,9 @@ struct __fdb_entry
__u8 port_no;
__u8 is_local;
__u32 ageing_timer_value;
- __u32 unused;
+ __u8 port_hi;
+ __u8 pad0;
+ __u16 unused;
};
#ifdef __KERNEL__
OpenPOWER on IntegriCloud