netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dimitris Michailidis <dm@chelsio.com>
To: netdev@vger.kernel.org
Cc: Dimitris Michailidis <dm@chelsio.com>
Subject: [PATCH net-next 5/9] cxgb4: advertise NETIF_F_TSO_ECN
Date: Mon,  2 Aug 2010 16:19:20 -0700	[thread overview]
Message-ID: <1280791164-14181-6-git-send-email-dm@chelsio.com> (raw)
In-Reply-To: <1280791164-14181-5-git-send-email-dm@chelsio.com>

The device supports TSO+ECN.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
---
 drivers/net/cxgb4/cxgb4_main.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index 47e8936..e80d4a5 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -1808,12 +1808,14 @@ static int set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
 	return err;
 }
 
+#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)
+
 static int set_tso(struct net_device *dev, u32 value)
 {
 	if (value)
-		dev->features |= NETIF_F_TSO | NETIF_F_TSO6;
+		dev->features |= TSO_FLAGS;
 	else
-		dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO6);
+		dev->features &= ~TSO_FLAGS;
 	return 0;
 }
 
@@ -3539,7 +3541,7 @@ static void free_some_resources(struct adapter *adapter)
 		t4_fw_bye(adapter, 0);
 }
 
-#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | NETIF_F_TSO6 |\
+#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \
 		   NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA)
 
 static int __devinit init_one(struct pci_dev *pdev,
@@ -3645,7 +3647,7 @@ static int __devinit init_one(struct pci_dev *pdev,
 		netif_tx_stop_all_queues(netdev);
 		netdev->irq = pdev->irq;
 
-		netdev->features |= NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6;
+		netdev->features |= NETIF_F_SG | TSO_FLAGS;
 		netdev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
 		netdev->features |= NETIF_F_GRO | NETIF_F_RXHASH | highdma;
 		netdev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
-- 
1.5.4


  reply	other threads:[~2010-08-02 23:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02 23:19 [PATCH net-next 0/9] cxgb4 updates Dimitris Michailidis
2010-08-02 23:19 ` [PATCH net-next 1/9] cxgb4: disable an interrupt that is neither used nor serviced Dimitris Michailidis
2010-08-02 23:19   ` [PATCH net-next 2/9] cxgb4: don't offload Rx checksums for IPv6 fragments Dimitris Michailidis
2010-08-02 23:19     ` [PATCH net-next 3/9] cxgb4: fix TSO descriptors Dimitris Michailidis
2010-08-02 23:19       ` [PATCH net-next 4/9] cxgb4: get on-chip queue info from FW and create a memory window for them Dimitris Michailidis
2010-08-02 23:19         ` Dimitris Michailidis [this message]
2010-08-02 23:19           ` [PATCH net-next 6/9] cxgb4: support running the driver on PCI functions besides 0 Dimitris Michailidis
2010-08-02 23:19             ` [PATCH net-next 7/9] cxgb4: fix wrong shift direction Dimitris Michailidis
2010-08-02 23:19               ` [PATCH net-next 8/9] cxgb4: add new PCI IDs Dimitris Michailidis
2010-08-02 23:19                 ` [PATCH net-next 9/9] cxgb4: update driver version Dimitris Michailidis
2010-08-02 23:27 ` [PATCH net-next 0/9] cxgb4 updates David Miller

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=1280791164-14181-6-git-send-email-dm@chelsio.com \
    --to=dm@chelsio.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).