From: Ben Hutchings <bhutchings@solarflare.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org,
jeff@garzik.org
Subject: Re: [PATCH 2/2] ixgbe: add LRO support
Date: Tue, 10 Jun 2008 00:26:29 +0100 [thread overview]
Message-ID: <20080609232627.GM11300@solarflare.com> (raw)
In-Reply-To: <20080609225722.1219.51519.stgit@localhost.localdomain>
Jeff Kirsher wrote:
> Support for in-kernel LRO
>
> Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>
> drivers/net/ixgbe/ixgbe.h | 9 +++
> drivers/net/ixgbe/ixgbe_ethtool.c | 9 +++
> drivers/net/ixgbe/ixgbe_main.c | 111 ++++++++++++++++++++++++++++++-------
> 3 files changed, 108 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
> index d981134..956914a 100644
> --- a/drivers/net/ixgbe/ixgbe.h
> +++ b/drivers/net/ixgbe/ixgbe.h
> @@ -32,6 +32,7 @@
> #include <linux/types.h>
> #include <linux/pci.h>
> #include <linux/netdevice.h>
> +#include <linux/inet_lro.h>
>
> #include "ixgbe_type.h"
> #include "ixgbe_common.h"
> @@ -100,6 +101,9 @@
> #define IXGBE_TX_FLAGS_VLAN_MASK 0xffff0000
> #define IXGBE_TX_FLAGS_VLAN_SHIFT 16
>
> +#define IXGBE_MAX_LRO_DESCRIPTORS 8
> +#define IXGBE_MAX_LRO_AGGREGATE 32
I think this is supposed to be <= MAX_SKB_FRAGS, though that's only
critical if you aggregating pages.
[...]
> @@ -3517,6 +3585,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
> NETIF_F_HW_VLAN_RX |
> NETIF_F_HW_VLAN_FILTER;
>
> + netdev->features |= NETIF_F_LRO;
There needs to be a way of turning LRO off. It should be sufficient
to add:
.get_flags = ethtool_op_get_flags,
.set_flags = ethtool_op_set_flags,
to your ethtool_ops. A module parameter to set the default might be
worthwhile too.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
next prev parent reply other threads:[~2008-06-09 23:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-09 22:57 [PATCH 1/2] ixgbe: fix typo Jeff Kirsher
2008-06-09 22:57 ` [PATCH 2/2] ixgbe: add LRO support Jeff Kirsher
2008-06-09 23:26 ` Ben Hutchings [this message]
2008-06-10 19:33 ` Malli
2008-06-10 19:47 ` Malli
2008-06-11 10:16 ` Ben Hutchings
2008-06-10 22:22 ` [PATCH 1/2] ixgbe: fix typo Jeff Garzik
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=20080609232627.GM11300@solarflare.com \
--to=bhutchings@solarflare.com \
--cc=e1000-devel@lists.sourceforge.net \
--cc=jeff@garzik.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).