All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] liquidio VF: indicate that disabling rx vlan offload is not allowed
@ 2018-05-01 17:32 Felix Manlunas
  2018-05-02 15:07 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Manlunas @ 2018-05-01 17:32 UTC (permalink / raw)
  To: davem
  Cc: netdev, raghu.vatsavayi, derek.chickles, satananda.burla,
	prasad.kanneganti

From: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>

NIC firmware does not support disabling rx vlan offload, but the VF driver
incorrectly indicates that it is supported.  The PF driver already does the
correct indication by clearing the NETIF_F_HW_VLAN_CTAG_RX bit in its
netdev->hw_features.  So just do the same thing in the VF.

Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Acked-by: Prasad Kanneganti <prasad.kanneganti@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
---
 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
index 08b682b..6295eee 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
@@ -2100,6 +2100,7 @@ static int setup_nic_devices(struct octeon_device *octeon_dev)
 		netdev->features = (lio->dev_capability & ~NETIF_F_LRO);
 
 		netdev->hw_features = lio->dev_capability;
+		netdev->hw_features &= ~NETIF_F_HW_VLAN_CTAG_RX;
 
 		/* MTU range: 68 - 16000 */
 		netdev->min_mtu = LIO_MIN_MTU_SIZE;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] liquidio VF: indicate that disabling rx vlan offload is not allowed
  2018-05-01 17:32 [PATCH net-next] liquidio VF: indicate that disabling rx vlan offload is not allowed Felix Manlunas
@ 2018-05-02 15:07 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-05-02 15:07 UTC (permalink / raw)
  To: felix.manlunas
  Cc: netdev, raghu.vatsavayi, derek.chickles, satananda.burla,
	prasad.kanneganti

From: Felix Manlunas <felix.manlunas@cavium.com>
Date: Tue, 1 May 2018 10:32:10 -0700

> From: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
> 
> NIC firmware does not support disabling rx vlan offload, but the VF driver
> incorrectly indicates that it is supported.  The PF driver already does the
> correct indication by clearing the NETIF_F_HW_VLAN_CTAG_RX bit in its
> netdev->hw_features.  So just do the same thing in the VF.
> 
> Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
> Acked-by: Prasad Kanneganti <prasad.kanneganti@cavium.com>
> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-02 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 17:32 [PATCH net-next] liquidio VF: indicate that disabling rx vlan offload is not allowed Felix Manlunas
2018-05-02 15:07 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.