[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110822.164541.1084485895386350206.davem@davemloft.net>
Date: Mon, 22 Aug 2011 16:45:41 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: rmody@...cade.com
Cc: netdev@...r.kernel.org, adapter_linux_open_src_team@...cade.com,
gkaraje@...cade.com
Subject: Re: [net-next 04/12] bna: TX Path and RX Path Changes
From: Rasesh Mody <rmody@...cade.com>
Date: Mon, 22 Aug 2011 15:41:01 -0700
> + if (unlikely(skb_is_gso(skb) > netdev->mtu)) {
skb_is_gso() is mean to be a boolean test, it happens to return
the value of ->gso_size as it's implementation but that's not
a good reason for you to abuse this interface in this way.
If we every fix skb_is_gso() to return a true 'bool' your driver
will break.
Access ->gso_size directly if that's what you're interested in,
that way it's future proof and won't break in the future.
--
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