Displaying 20 results from an estimated 25 matches for "netif_f_ipv6_csum".
Did you mean:
netif_f_ip_csum
2014 Dec 17
2
[PATCH 01/10] core: Split out UFO6 support
...ct net_device *dev,
> features &= ~NETIF_F_GSO;
> }
>
> - /* UFO needs SG and checksumming */
> - if (features & NETIF_F_UFO) {
> - /* maybe split UFO into V4 and V6? */
> - if (!((features & NETIF_F_GEN_CSUM) ||
> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> - netdev_dbg(dev,
> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> - features &= ~NETIF_F_UFO;
> - }
> -
> - if (!(features & NETIF_F_SG)) {
> - netdev_dbg(dev,
> -...
2014 Dec 17
2
[PATCH 01/10] core: Split out UFO6 support
...ct net_device *dev,
> features &= ~NETIF_F_GSO;
> }
>
> - /* UFO needs SG and checksumming */
> - if (features & NETIF_F_UFO) {
> - /* maybe split UFO into V4 and V6? */
> - if (!((features & NETIF_F_GEN_CSUM) ||
> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> - netdev_dbg(dev,
> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> - features &= ~NETIF_F_UFO;
> - }
> -
> - if (!(features & NETIF_F_SG)) {
> - netdev_dbg(dev,
> -...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...tdev_features_t netdev_fix_features(struct net_device *dev,
features &= ~NETIF_F_GSO;
}
- /* UFO needs SG and checksumming */
- if (features & NETIF_F_UFO) {
- /* maybe split UFO into V4 and V6? */
- if (!((features & NETIF_F_GEN_CSUM) ||
- (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
- == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no checksum offload features.\n");
- features &= ~NETIF_F_UFO;
- }
-
- if (!(features & NETIF_F_SG)) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no NETIF_F...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...tdev_features_t netdev_fix_features(struct net_device *dev,
features &= ~NETIF_F_GSO;
}
- /* UFO needs SG and checksumming */
- if (features & NETIF_F_UFO) {
- /* maybe split UFO into V4 and V6? */
- if (!((features & NETIF_F_GEN_CSUM) ||
- (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
- == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no checksum offload features.\n");
- features &= ~NETIF_F_UFO;
- }
-
- if (!(features & NETIF_F_SG)) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no NETIF_F...
2014 Dec 18
2
[PATCH 01/10] core: Split out UFO6 support
...>> }
> >>
> >> - /* UFO needs SG and checksumming */
> >> - if (features & NETIF_F_UFO) {
> >> - /* maybe split UFO into V4 and V6? */
> >> - if (!((features & NETIF_F_GEN_CSUM) ||
> >> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> >> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> >> - netdev_dbg(dev,
> >> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> >> - features &= ~NETIF_F_UFO;
> >> - }
> >> -
> >> - if (!(...
2014 Dec 18
2
[PATCH 01/10] core: Split out UFO6 support
...>> }
> >>
> >> - /* UFO needs SG and checksumming */
> >> - if (features & NETIF_F_UFO) {
> >> - /* maybe split UFO into V4 and V6? */
> >> - if (!((features & NETIF_F_GEN_CSUM) ||
> >> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> >> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> >> - netdev_dbg(dev,
> >> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> >> - features &= ~NETIF_F_UFO;
> >> - }
> >> -
> >> - if (!(...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...features &= ~NETIF_F_GSO;
>> }
>>
>> - /* UFO needs SG and checksumming */
>> - if (features & NETIF_F_UFO) {
>> - /* maybe split UFO into V4 and V6? */
>> - if (!((features & NETIF_F_GEN_CSUM) ||
>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
>> - netdev_dbg(dev,
>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
>> - features &= ~NETIF_F_UFO;
>> - }
>> -
>> - if (!(features & NETIF_F_SG)) {
>&...
2014 Dec 17
0
[PATCH 01/10] core: Split out UFO6 support
...features &= ~NETIF_F_GSO;
>> }
>>
>> - /* UFO needs SG and checksumming */
>> - if (features & NETIF_F_UFO) {
>> - /* maybe split UFO into V4 and V6? */
>> - if (!((features & NETIF_F_GEN_CSUM) ||
>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
>> - netdev_dbg(dev,
>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
>> - features &= ~NETIF_F_UFO;
>> - }
>> -
>> - if (!(features & NETIF_F_SG)) {
>&...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
...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) &&
> + !(features & NETIF_F_IPV6_CSUM)) {
[...]
Similarly you can use !(features & NETIF_F_V6_CSUM) instead of the last
two terms.
Aside from those minor points, this looks fine.
Ben.
--
Ben Hutchings
Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer
-------------- next part --------------
A non-text at...
2014 Dec 17
1
[PATCH 01/10] core: Split out UFO6 support
...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) &&
> + !(features & NETIF_F_IPV6_CSUM)) {
[...]
Similarly you can use !(features & NETIF_F_V6_CSUM) instead of the last
two terms.
Aside from those minor points, this looks fine.
Ben.
--
Ben Hutchings
Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer
-------------- next part --------------
A non-text at...
2014 Dec 18
0
[PATCH 01/10] core: Split out UFO6 support
...gt;>>
>>>> - /* UFO needs SG and checksumming */
>>>> - if (features & NETIF_F_UFO) {
>>>> - /* maybe split UFO into V4 and V6? */
>>>> - if (!((features & NETIF_F_GEN_CSUM) ||
>>>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
>>>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
>>>> - netdev_dbg(dev,
>>>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
>>>> - features &= ~NETIF_F_UFO;
>>>> - }
>>>> -
>&...
2014 Dec 18
0
[PATCH 01/10] core: Split out UFO6 support
...gt;>>
>>>> - /* UFO needs SG and checksumming */
>>>> - if (features & NETIF_F_UFO) {
>>>> - /* maybe split UFO into V4 and V6? */
>>>> - if (!((features & NETIF_F_GEN_CSUM) ||
>>>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
>>>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
>>>> - netdev_dbg(dev,
>>>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
>>>> - features &= ~NETIF_F_UFO;
>>>> - }
>>>> -
>&...
2014 Dec 18
3
[PATCH 01/10] core: Split out UFO6 support
...t;>> - /* UFO needs SG and checksumming */
> >>>> - if (features & NETIF_F_UFO) {
> >>>> - /* maybe split UFO into V4 and V6? */
> >>>> - if (!((features & NETIF_F_GEN_CSUM) ||
> >>>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> >>>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> >>>> - netdev_dbg(dev,
> >>>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> >>>> - features &= ~NETIF_F_UFO;
> >>>> - }...
2014 Dec 18
3
[PATCH 01/10] core: Split out UFO6 support
...t;>> - /* UFO needs SG and checksumming */
> >>>> - if (features & NETIF_F_UFO) {
> >>>> - /* maybe split UFO into V4 and V6? */
> >>>> - if (!((features & NETIF_F_GEN_CSUM) ||
> >>>> - (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))
> >>>> - == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {
> >>>> - netdev_dbg(dev,
> >>>> - "Dropping NETIF_F_UFO since no checksum offload features.\n");
> >>>> - features &= ~NETIF_F_UFO;
> >>>> - }...
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
2014 May 08
2
[PATCH] net: get rid of SET_ETHTOOL_OPS
...qlcnic_sriov_vf_ethtool_ops);
- else
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops);
+ netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ?
+ &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops;
netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
NETIF_F_IPV6_CSUM | NETIF_F_GRO |
@@ -2630,7 +2628,7 @@ err_out_disable_pdev:
err_out_maintenance_mode:
set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state);
netdev->netdev_ops = &qlcnic_netdev_failed_ops;
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops);
+ netdev->ethtool_ops = &ql...
2014 May 08
2
[PATCH] net: get rid of SET_ETHTOOL_OPS
...qlcnic_sriov_vf_ethtool_ops);
- else
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops);
+ netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ?
+ &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops;
netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
NETIF_F_IPV6_CSUM | NETIF_F_GRO |
@@ -2630,7 +2628,7 @@ err_out_disable_pdev:
err_out_maintenance_mode:
set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state);
netdev->netdev_ops = &qlcnic_netdev_failed_ops;
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops);
+ netdev->ethtool_ops = &ql...
2014 May 11
7
[PATCH] [resend] net: get rid of SET_ETHTOOL_OPS
...qlcnic_sriov_vf_ethtool_ops);
- else
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops);
+ netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ?
+ &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops;
netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
NETIF_F_IPV6_CSUM | NETIF_F_GRO |
@@ -2630,7 +2628,7 @@ err_out_disable_pdev:
err_out_maintenance_mode:
set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state);
netdev->netdev_ops = &qlcnic_netdev_failed_ops;
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops);
+ netdev->ethtool_ops = &ql...
2014 May 11
7
[PATCH] [resend] net: get rid of SET_ETHTOOL_OPS
...qlcnic_sriov_vf_ethtool_ops);
- else
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops);
+ netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ?
+ &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops;
netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
NETIF_F_IPV6_CSUM | NETIF_F_GRO |
@@ -2630,7 +2628,7 @@ err_out_disable_pdev:
err_out_maintenance_mode:
set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state);
netdev->netdev_ops = &qlcnic_netdev_failed_ops;
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops);
+ netdev->ethtool_ops = &ql...