search for: netif_f_v4_csum

Displaying 16 results from an estimated 16 matches for "netif_f_v4_csum".

Did you mean: netif_f_ip_csum
2014 Dec 17
2
[PATCH 01/10] core: Split out UFO6 support
...enum { > > /* List of features with software fallbacks. */ > #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > - NETIF_F_TSO6 | NETIF_F_UFO) > + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > > #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > @@ -149,6 +151,7 @@ enum { > #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > > #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO6) > > #def...
2014 Dec 17
2
[PATCH 01/10] core: Split out UFO6 support
...enum { > > /* List of features with software fallbacks. */ > #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > - NETIF_F_TSO6 | NETIF_F_UFO) > + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > > #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > @@ -149,6 +151,7 @@ enum { > #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > > #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO6) > > #def...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
...58,21 @@ static netdev_features_t netdev_fix_features(struct net_device *dev, [...] > + /* UFO also needs checksumming */ > + if ((features & NETIF_F_UFO) && !(features & NETIF_F_GEN_CSUM) && > + !(features & NETIF_F_IP_CSUM)) { You can use !(features & NETIF_F_V4_CSUM) instead of the last two terms. > + netdev_dbg(dev, > + "Dropping NETIF_F_UFO since no checksum offload features.\n"); > + features &= ~NETIF_F_UFO; > + } > + if ((features & NETIF_F_UFO6) && !(features & NETIF_F_GEN_CSUM) && > +...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
...58,21 @@ static netdev_features_t netdev_fix_features(struct net_device *dev, [...] > + /* UFO also needs checksumming */ > + if ((features & NETIF_F_UFO) && !(features & NETIF_F_GEN_CSUM) && > + !(features & NETIF_F_IP_CSUM)) { You can use !(features & NETIF_F_V4_CSUM) instead of the last two terms. > + netdev_dbg(dev, > + "Dropping NETIF_F_UFO since no checksum offload features.\n"); > + features &= ~NETIF_F_UFO; > + } > + if ((features & NETIF_F_UFO6) && !(features & NETIF_F_GEN_CSUM) && > +...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...LL __NETIF_F(RXALL) @@ -141,7 +143,7 @@ enum { /* List of features with software fallbacks. */ #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ - NETIF_F_TSO6 | NETIF_F_UFO) + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) @@ -149,6 +151,7 @@ enum { #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO6) #define NETIF_F_ALL_FCOE (NETIF_F_FCOE_...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...LL __NETIF_F(RXALL) @@ -141,7 +143,7 @@ enum { /* List of features with software fallbacks. */ #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ - NETIF_F_TSO6 | NETIF_F_UFO) + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) @@ -149,6 +151,7 @@ enum { #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO6) #define NETIF_F_ALL_FCOE (NETIF_F_FCOE_...
2014 Dec 18
2
[PATCH 01/10] core: Split out UFO6 support
...fallbacks. */ > >> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > >> - NETIF_F_TSO6 | NETIF_F_UFO) > >> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > >> > >> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > >> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > >> @@ -149,6 +151,7 @@ enum { > >> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > >> > >> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > >> +#define NETIF_F_ALL_UFO (...
2014 Dec 18
2
[PATCH 01/10] core: Split out UFO6 support
...fallbacks. */ > >> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > >> - NETIF_F_TSO6 | NETIF_F_UFO) > >> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > >> > >> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > >> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > >> @@ -149,6 +151,7 @@ enum { > >> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > >> > >> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > >> +#define NETIF_F_ALL_UFO (...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...List of features with software fallbacks. */ >> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ >> - NETIF_F_TSO6 | NETIF_F_UFO) >> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) >> >> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM >> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) >> @@ -149,6 +151,7 @@ enum { >> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) >> >> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) >> +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...List of features with software fallbacks. */ >> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ >> - NETIF_F_TSO6 | NETIF_F_UFO) >> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) >> >> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM >> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) >> @@ -149,6 +151,7 @@ enum { >> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) >> >> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) >> +#define NETIF_F_ALL_UFO (NETIF_F_UFO | NETIF_F_UFO...
2014 Dec 18
0
[PATCH 01/10] core: Split out UFO6 support
...;>>> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ >>>> - NETIF_F_TSO6 | NETIF_F_UFO) >>>> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) >>>> >>>> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM >>>> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) >>>> @@ -149,6 +151,7 @@ enum { >>>> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) >>>> >>>> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) >>>> +#define NET...
2014 Dec 18
0
[PATCH 01/10] core: Split out UFO6 support
...;>>> #define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ >>>> - NETIF_F_TSO6 | NETIF_F_UFO) >>>> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) >>>> >>>> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM >>>> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) >>>> @@ -149,6 +151,7 @@ enum { >>>> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) >>>> >>>> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) >>>> +#define NET...
2014 Dec 18
3
[PATCH 01/10] core: Split out UFO6 support
...TIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > >>>> - NETIF_F_TSO6 | NETIF_F_UFO) > >>>> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > >>>> > >>>> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > >>>> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > >>>> @@ -149,6 +151,7 @@ enum { > >>>> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > >>>> > >>>> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > >...
2014 Dec 18
3
[PATCH 01/10] core: Split out UFO6 support
...TIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | \ > >>>> - NETIF_F_TSO6 | NETIF_F_UFO) > >>>> + NETIF_F_TSO6 | NETIF_F_UFO | NETIF_F_UFO6) > >>>> > >>>> #define NETIF_F_GEN_CSUM NETIF_F_HW_CSUM > >>>> #define NETIF_F_V4_CSUM (NETIF_F_GEN_CSUM | NETIF_F_IP_CSUM) > >>>> @@ -149,6 +151,7 @@ enum { > >>>> #define NETIF_F_ALL_CSUM (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM) > >>>> > >>>> #define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) > >...
2014 Dec 17
20
[PATCH 00/10] Split UFO into v4 and v6 versions.
UFO support in the kernel applies to both IPv4 and IPv6 protocols with the same device feature. However some devices may not be able to support one of the offloads. For this we split the UFO offload feature into 2 pieces. NETIF_F_UFO now controlls the IPv4 part and this series introduces NETIF_F_UFO6. As a result of this work, we can now re-enable NETIF_F_UFO on virtio_net devices and restore
2014 Dec 17
20
[PATCH 00/10] Split UFO into v4 and v6 versions.
UFO support in the kernel applies to both IPv4 and IPv6 protocols with the same device feature. However some devices may not be able to support one of the offloads. For this we split the UFO offload feature into 2 pieces. NETIF_F_UFO now controlls the IPv4 part and this series introduces NETIF_F_UFO6. As a result of this work, we can now re-enable NETIF_F_UFO on virtio_net devices and restore