On 16.03.2017 21:26, Harry Schmalzbauer wrote:
>  Hello,
> 
> I'm wondering if I really loose [RT]XCSUM_IPV6 on if_igb(4) vlan(4)
> children.
> My igb0 (Kawela, aka 82576) options end with
>   "TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6"
> 
> The vlan(4) filtered interfaces show these:
>   options=303<RXCSUM,TXCSUM,TSO4,TSO6>
> 
> So TSO6 is inherited, but RC/TXCSUM_IPV6 dropped?

Can you test the attached patch?

-- 
WBR, Andrey V. Elsukov
Index: sys/net/if_vlan.c
===================================================================
--- sys/net/if_vlan.c	(revision 316506)
+++ sys/net/if_vlan.c	(working copy)
@@ -1555,13 +1555,16 @@ vlan_capabilities(struct ifvlan *ifv)
 	 * offloading requires hardware VLAN tagging.
 	 */
 	if (p->if_capabilities & IFCAP_VLAN_HWCSUM)
-		ifp->if_capabilities = p->if_capabilities & IFCAP_HWCSUM;
+		ifp->if_capabilities =
+		    p->if_capabilities & (IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6);
 
 	if (p->if_capenable & IFCAP_VLAN_HWCSUM &&
 	    p->if_capenable & IFCAP_VLAN_HWTAGGING) {
-		ifp->if_capenable = p->if_capenable & IFCAP_HWCSUM;
+		ifp->if_capenable =
+		    p->if_capenable & (IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6);
 		ifp->if_hwassist = p->if_hwassist & (CSUM_IP | CSUM_TCP |
-		    CSUM_UDP | CSUM_SCTP);
+		    CSUM_UDP | CSUM_SCTP | CSUM_TCP_IPV6 | CSUM_UDP_IPV6 |
+		    CSUM_SCTP_IPV6);
 	} else {
 		ifp->if_capenable = 0;
 		ifp->if_hwassist = 0;

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to