net: add ETH_P_802_3_MIN
Add a new constant ETH_P_802_3_MIN, the minimum ethernet type for an 802.3 frame. Frames with a lower value in the ethernet type field are Ethernet II. Also update all the users of this value that David Miller and I could find to use the new constant. Also correct a bug in util.c. The comparison with ETH_P_802_3_MIN should be >= not >. As suggested by Jesse Gross. Compile tested only. Cc: David Miller <davem@davemloft.net> Cc: Jesse Gross <jesse@nicira.com> Cc: Karsten Keil <isdn@linux-pingi.de> Cc: John W. Linville <linville@tuxdriver.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Bart De Schuymer <bart.de.schuymer@pandora.be> Cc: Stephen Hemminger <stephen@networkplumber.org> Cc: Patrick McHardy <kaber@trash.net> Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Gustavo Padovan <gustavo@padovan.org> Cc: Johan Hedberg <johan.hedberg@gmail.com> Cc: linux-bluetooth@vger.kernel.org Cc: netfilter-devel@vger.kernel.org Cc: bridge@lists.linux-foundation.org Cc: linux-wireless@vger.kernel.org Cc: linux1394-devel@lists.sourceforge.net Cc: linux-media@vger.kernel.org Cc: netdev@vger.kernel.org Cc: dev@openvswitch.org Acked-by:Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by:
Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by:
Simon Horman <horms@verge.net.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/firewire/net.c 1 addition, 1 deletiondrivers/firewire/net.c
- drivers/isdn/i4l/isdn_net.c 1 addition, 1 deletiondrivers/isdn/i4l/isdn_net.c
- drivers/media/dvb-core/dvb_net.c 5 additions, 5 deletionsdrivers/media/dvb-core/dvb_net.c
- drivers/net/ethernet/sun/niu.c 1 addition, 1 deletiondrivers/net/ethernet/sun/niu.c
- drivers/net/plip/plip.c 1 addition, 1 deletiondrivers/net/plip/plip.c
- drivers/net/wireless/ray_cs.c 1 addition, 1 deletiondrivers/net/wireless/ray_cs.c
- include/linux/if_vlan.h 1 addition, 1 deletioninclude/linux/if_vlan.h
- include/uapi/linux/if_ether.h 3 additions, 0 deletionsinclude/uapi/linux/if_ether.h
- net/atm/lec.h 1 addition, 1 deletionnet/atm/lec.h
- net/bluetooth/bnep/netdev.c 1 addition, 1 deletionnet/bluetooth/bnep/netdev.c
- net/bridge/netfilter/ebtables.c 1 addition, 1 deletionnet/bridge/netfilter/ebtables.c
- net/ethernet/eth.c 1 addition, 1 deletionnet/ethernet/eth.c
- net/mac80211/tx.c 1 addition, 1 deletionnet/mac80211/tx.c
- net/openvswitch/datapath.c 1 addition, 1 deletionnet/openvswitch/datapath.c
- net/openvswitch/flow.c 3 additions, 3 deletionsnet/openvswitch/flow.c
- net/wireless/util.c 1 addition, 1 deletionnet/wireless/util.c
Loading
Please register or sign in to comment