[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130321142403.3c0bfac8@stein>
Date: Thu, 21 Mar 2013 14:24:03 +0100
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Simon Horman <horms@...ge.net.au>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Jesse Gross <jesse@...ira.com>,
Karsten Keil <isdn@...ux-pingi.de>,
Mauro Carvalho Chehab <mchehab@...hat.com>,
linux1394-devel@...ts.sourceforge.net, linux-media@...r.kernel.org,
dev@...nvswitch.org
Subject: Re: [PATCH] net: add ETH_P_802_3_MIN
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 <jesse@...ira.com>
> Cc: Stefan Richter <stefanr@...6.in-berlin.de>
> Cc: Karsten Keil <isdn@...ux-pingi.de>
> Cc: Mauro Carvalho Chehab <mchehab@...hat.com>
> Cc: linux1394-devel@...ts.sourceforge.net
> Cc: linux-media@...r.kernel.org
> Cc: dev@...nvswitch.org
> Signed-off-by: Simon Horman <horms@...ge.net.au>
> ---
> drivers/firewire/net.c | 2 +-
Acked-by: Stefan Richter <stefanr@...6.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/
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists