On Mar 21 Simon Horman wrote:
> 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 I could find to use the
> new constant.
> 
> I anticipate adding some more users of this constant when
> adding MPLS support to Open vSwtich.
> 
> As suggested by Jesse Gross.
> 
> Compile tested only.
> 
> Cc: Jesse Gross <je...@nicira.com>
> Cc: Stefan Richter <stef...@s5r6.in-berlin.de>
> Cc: Karsten Keil <i...@linux-pingi.de>
> Cc: Mauro Carvalho Chehab <mche...@redhat.com>
> Cc: linux1394-de...@lists.sourceforge.net
> Cc: linux-me...@vger.kernel.org
> Cc: dev@openvswitch.org
> Signed-off-by: Simon Horman <ho...@verge.net.au>
> ---
>  drivers/firewire/net.c           |    2 +-

Acked-by: Stefan Richter <stef...@s5r6.in-berlin.de>

>  drivers/isdn/i4l/isdn_net.c      |    2 +-
>  drivers/media/dvb-core/dvb_net.c |    6 +++---
>  drivers/net/ethernet/sun/niu.c   |    2 +-
>  drivers/net/plip/plip.c          |    2 +-
>  include/uapi/linux/if_ether.h    |    3 +++
>  net/ethernet/eth.c               |    2 +-
>  net/openvswitch/datapath.c       |    2 +-
>  8 files changed, 12 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
> index 2b27bff..bd34ca1 100644
> --- a/drivers/firewire/net.c
> +++ b/drivers/firewire/net.c
> @@ -630,7 +630,7 @@ static int fwnet_finish_incoming_packet(struct net_device 
> *net,
>                       if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
>                               skb->pkt_type = PACKET_OTHERHOST;
>               }
> -             if (ntohs(eth->h_proto) >= 1536) {
> +             if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
>                       protocol = eth->h_proto;
>               } else {
>                       rawp = (u16 *)skb->data;
[...]

-- 
Stefan Richter
-=====-===-= --== =-=-=
http://arcgraph.de/sr/
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to