net: Eliminate NETIF_F_GEN_CSUM and NETIF_F_V[46]_CSUM
These netif flags are unnecessary convolutions. It is more straightforward to just use NETIF_F_HW_CSUM, NETIF_F_IP_CSUM, and NETIF_F_IPV6_CSUM directly. This patch also: - Cleans up can_checksum_protocol - Simplifies netdev_intersect_features Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a188222b6e
commit
c8cd0989bd
@@ -911,7 +911,7 @@ static int __ip_append_data(struct sock *sk,
|
||||
*/
|
||||
if (transhdrlen &&
|
||||
length + fragheaderlen <= mtu &&
|
||||
rt->dst.dev->features & NETIF_F_V4_CSUM &&
|
||||
rt->dst.dev->features & (NETIF_F_HW_CSUM | NETIF_F_IP_CSUM) &&
|
||||
!(flags & MSG_MORE) &&
|
||||
!exthdrlen)
|
||||
csummode = CHECKSUM_PARTIAL;
|
||||
|
Reference in New Issue
Block a user