* [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask
@ 2014-11-06 9:21 Or Gerlitz
2014-11-06 21:44 ` David Miller
2014-11-07 21:57 ` Vick, Matthew
0 siblings, 2 replies; 5+ messages in thread
From: Or Gerlitz @ 2014-11-06 9:21 UTC (permalink / raw)
To: Jeff Kirsher; +Cc: netdev, Or Gerlitz
The networking core does it for the driver during registration time.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
---
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
index 8811364..2b17cd8 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
@@ -1414,13 +1414,12 @@ struct net_device *fm10k_alloc_netdev(void)
dev->vlan_features |= dev->features;
/* configure tunnel offloads */
- dev->hw_enc_features = NETIF_F_IP_CSUM |
+ dev->hw_enc_features |= NETIF_F_IP_CSUM |
NETIF_F_TSO |
NETIF_F_TSO6 |
NETIF_F_TSO_ECN |
NETIF_F_GSO_UDP_TUNNEL |
- NETIF_F_IPV6_CSUM |
- NETIF_F_SG;
+ NETIF_F_IPV6_CSUM;
/* we want to leave these both on as we cannot disable VLAN tag
* insertion or stripping on the hardware since it is contained
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask
2014-11-06 9:21 [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask Or Gerlitz
@ 2014-11-06 21:44 ` David Miller
2014-11-07 6:44 ` Jeff Kirsher
2014-11-07 21:57 ` Vick, Matthew
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2014-11-06 21:44 UTC (permalink / raw)
To: ogerlitz; +Cc: jeffrey.t.kirsher, netdev
From: Or Gerlitz <ogerlitz@mellanox.com>
Date: Thu, 6 Nov 2014 11:21:04 +0200
> The networking core does it for the driver during registration time.
>
> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
I assume Jeff will pick this up and send it to me via his tree.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask
2014-11-06 21:44 ` David Miller
@ 2014-11-07 6:44 ` Jeff Kirsher
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Kirsher @ 2014-11-07 6:44 UTC (permalink / raw)
To: David Miller; +Cc: ogerlitz, netdev
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
On Thu, 2014-11-06 at 16:44 -0500, David Miller wrote:
> From: Or Gerlitz <ogerlitz@mellanox.com>
> Date: Thu, 6 Nov 2014 11:21:04 +0200
>
> > The networking core does it for the driver during registration time.
> >
> > Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
>
> I assume Jeff will pick this up and send it to me via his tree.
Correct, I will add this to my queue of patches.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask
2014-11-06 9:21 [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask Or Gerlitz
2014-11-06 21:44 ` David Miller
@ 2014-11-07 21:57 ` Vick, Matthew
2014-11-09 8:15 ` Or Gerlitz
1 sibling, 1 reply; 5+ messages in thread
From: Vick, Matthew @ 2014-11-07 21:57 UTC (permalink / raw)
To: Or Gerlitz, Kirsher, Jeffrey T; +Cc: netdev@vger.kernel.org
On 11/6/14, 1:21 AM, "Or Gerlitz" <ogerlitz@mellanox.com> wrote:
>The networking core does it for the driver during registration time.
>
>Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
>---
> drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
>b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
>index 8811364..2b17cd8 100644
>--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
>+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
>@@ -1414,13 +1414,12 @@ struct net_device *fm10k_alloc_netdev(void)
> dev->vlan_features |= dev->features;
>
> /* configure tunnel offloads */
>- dev->hw_enc_features = NETIF_F_IP_CSUM |
>+ dev->hw_enc_features |= NETIF_F_IP_CSUM |
> NETIF_F_TSO |
> NETIF_F_TSO6 |
> NETIF_F_TSO_ECN |
> NETIF_F_GSO_UDP_TUNNEL |
>- NETIF_F_IPV6_CSUM |
>- NETIF_F_SG;
>+ NETIF_F_IPV6_CSUM;
>
> /* we want to leave these both on as we cannot disable VLAN tag
> * insertion or stripping on the hardware since it is contained
Good catch, Or! Thank you for taking care of this!
Someone can correct me if I'm mistaken (I thought checkpatch would
complain about this, but it doesn't seem to be), but I believe the start
of the lines should match up like they are for the dev->features. Would
you like to submit a V2 with this change or would you like me to do it
(giving you credit via your Reported-by)?
Cheers,
Matthew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask
2014-11-07 21:57 ` Vick, Matthew
@ 2014-11-09 8:15 ` Or Gerlitz
0 siblings, 0 replies; 5+ messages in thread
From: Or Gerlitz @ 2014-11-09 8:15 UTC (permalink / raw)
To: Vick, Matthew; +Cc: Jeff Kirsher, netdev@vger.kernel.org
On 11/7/2014 11:57 PM, Vick, Matthew wrote:
> Good catch, Or! Thank you for taking care of this!
sure
> Someone can correct me if I'm mistaken (I thought checkpatch would
> complain about this, but it doesn't seem to be), but I believe the start
> of the lines should match up like they are for the dev->features. Would
> you like to submit a V2 with this change or would you like me to do it
> (giving you credit via your Reported-by)?
I just submitted V1 along your request
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-11-09 8:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 9:21 [PATCH net-next] net/fm10k: Avoid double setting of NETIF_F_SG for the HW encapsulation feature mask Or Gerlitz
2014-11-06 21:44 ` David Miller
2014-11-07 6:44 ` Jeff Kirsher
2014-11-07 21:57 ` Vick, Matthew
2014-11-09 8:15 ` Or Gerlitz
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).