mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
qlcnic: Fix RX/TX checksum setting for some adapter types
Signed-off-by: Manish chopra <manish.chopra@qlogic.com> Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4d53f40f54
commit
22fd5ab462
@ -932,7 +932,8 @@ netdev_features_t qlcnic_fix_features(struct net_device *netdev,
|
|||||||
{
|
{
|
||||||
struct qlcnic_adapter *adapter = netdev_priv(netdev);
|
struct qlcnic_adapter *adapter = netdev_priv(netdev);
|
||||||
|
|
||||||
if ((adapter->flags & QLCNIC_ESWITCH_ENABLED)) {
|
if ((adapter->flags & QLCNIC_ESWITCH_ENABLED) &&
|
||||||
|
qlcnic_82xx_check(adapter)) {
|
||||||
netdev_features_t changed = features ^ netdev->features;
|
netdev_features_t changed = features ^ netdev->features;
|
||||||
features ^= changed & (NETIF_F_ALL_CSUM | NETIF_F_RXCSUM);
|
features ^= changed & (NETIF_F_ALL_CSUM | NETIF_F_RXCSUM);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user