Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53692b1d authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller
Browse files

sctp: Rename NETIF_F_SCTP_CSUM to NETIF_F_SCTP_CRC



The SCTP checksum is really a CRC and is very different from the
standards 1's complement checksum that serves as the checksum
for IP protocols. This offload interface is also very different.
Rename NETIF_F_SCTP_CSUM to NETIF_F_SCTP_CRC to highlight these
differences. The term CSUM should be reserved in the stack to refer
to the standard 1's complement IP checksum.

Signed-off-by: default avatarTom Herbert <tom@herbertland.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 55dc5a9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8842,7 +8842,7 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)

	netdev->features = NETIF_F_SG		       |
			   NETIF_F_IP_CSUM	       |
			   NETIF_F_SCTP_CSUM	       |
			   NETIF_F_SCTP_CRC	       |
			   NETIF_F_HIGHDMA	       |
			   NETIF_F_GSO_UDP_TUNNEL      |
			   NETIF_F_GSO_GRE	       |
+1 −1
Original line number Diff line number Diff line
@@ -2321,7 +2321,7 @@ int i40evf_process_config(struct i40evf_adapter *adapter)
	netdev->features |= NETIF_F_HIGHDMA |
			    NETIF_F_SG |
			    NETIF_F_IP_CSUM |
			    NETIF_F_SCTP_CSUM |
			    NETIF_F_SCTP_CRC |
			    NETIF_F_IPV6_CSUM |
			    NETIF_F_TSO |
			    NETIF_F_TSO6 |
+2 −2
Original line number Diff line number Diff line
@@ -2379,8 +2379,8 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	}

	if (hw->mac.type >= e1000_82576) {
		netdev->hw_features |= NETIF_F_SCTP_CSUM;
		netdev->features |= NETIF_F_SCTP_CSUM;
		netdev->hw_features |= NETIF_F_SCTP_CRC;
		netdev->features |= NETIF_F_SCTP_CRC;
	}

	netdev->priv_flags |= IFF_UNICAST_FLT;
+2 −2
Original line number Diff line number Diff line
@@ -8995,8 +8995,8 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	case ixgbe_mac_X540:
	case ixgbe_mac_X550:
	case ixgbe_mac_X550EM_x:
		netdev->features |= NETIF_F_SCTP_CSUM;
		netdev->hw_features |= NETIF_F_SCTP_CSUM |
		netdev->features |= NETIF_F_SCTP_CRC;
		netdev->hw_features |= NETIF_F_SCTP_CRC |
				       NETIF_F_NTUPLE;
		break;
	default:
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static void loopback_setup(struct net_device *dev)
		| NETIF_F_UFO
		| NETIF_F_HW_CSUM
		| NETIF_F_RXCSUM
		| NETIF_F_SCTP_CSUM
		| NETIF_F_SCTP_CRC
		| NETIF_F_HIGHDMA
		| NETIF_F_LLTX
		| NETIF_F_NETNS_LOCAL
Loading