From: "Dmitry Kravkov" <dmitry@broadcom.com>
To: "Joseph Gasparakis" <joseph.gasparakis@intel.com>
Cc: davem@davemloft.net, shemminger@vyatta.com, chrisw@sous-sol.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"Peter P Waskiewicz Jr" <peter.p.waskiewicz.jr@intel.com>
Subject: Re: [PATCH v2 3/3] ipgre: capture inner headers during encapsulation
Date: Mon, 12 Nov 2012 13:20:05 +0200 [thread overview]
Message-ID: <1352719205.5201.7.camel@lb-tlvb-dmitry.il.broadcom.com> (raw)
In-Reply-To: <1352709418-28996-4-git-send-email-joseph.gasparakis@intel.com>
My last comment was rejected by the lists due to html tag.
Resending it in plain text. Sorry for the spam.
On Mon, 2012-11-12 at 00:36 -0800, Joseph Gasparakis wrote:
> Populating the inner header pointers of skb for ipgre
> This patch has been compile-tested only.
>
> Signed-off-by: Joseph Gasparakis <joseph.gasparakis@intel.com>
> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
> ---
> net/ipv4/ip_gre.c | 15 ++++++++++++++-
> 1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
> index 7240f8e..e35ed52 100644
> --- a/net/ipv4/ip_gre.c
> +++ b/net/ipv4/ip_gre.c
> @@ -766,8 +766,10 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
> int gre_hlen;
> __be32 dst;
> int mtu;
> + unsigned int offset;
>
> - if (skb->ip_summed == CHECKSUM_PARTIAL &&
> + if (!(skb->dev->features & NETIF_F_HW_CSUM_ENC_BIT) &&
> + skb->ip_summed == CHECKSUM_PARTIAL &&
> skb_checksum_help(skb))
> goto tx_error;
Gre device currently has constant features set, which does not include
CSUM_ENC bit. Do you plan to propagate it from underlying physical
device?
Thanks.
next prev parent reply other threads:[~2012-11-12 11:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 8:36 [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation Joseph Gasparakis
2012-11-12 8:36 ` [PATCH v2 1/3] net: " Joseph Gasparakis
2012-11-12 12:31 ` saeed bishara
2012-11-12 8:36 ` [PATCH v2 2/3] vxlan: capture inner headers during encapsulation Joseph Gasparakis
2012-11-12 8:36 ` [PATCH v2 3/3] ipgre: " Joseph Gasparakis
2012-11-12 11:20 ` Dmitry Kravkov [this message]
2012-11-14 0:42 ` [PATCH v2 net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation Joseph Gasparakis
-- strict thread matches above, loose matches on Subject: below --
2012-11-12 3:04 [PATCH v2 3/3] ipgre: capture inner headers during encapsulation Joseph Gasparakis
2012-11-12 3:06 ` David Miller
2012-11-12 3:17 ` Joseph Gasparakis
2012-11-14 12:32 ` Dmitry Kravkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352719205.5201.7.camel@lb-tlvb-dmitry.il.broadcom.com \
--to=dmitry@broadcom.com \
--cc=chrisw@sous-sol.org \
--cc=davem@davemloft.net \
--cc=joseph.gasparakis@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=peter.p.waskiewicz.jr@intel.com \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®