if_atsam: Enable all capabilities

Update #4651.
This commit is contained in:
Sebastian Huber 2022-05-04 15:31:08 +02:00
parent a4b878cde8
commit 79e742182f

View File

@ -1487,6 +1487,7 @@ static int if_atsam_driver_attach(device_t dev)
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX;
ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
IFCAP_VLAN_HWCSUM;
ifp->if_capenable = ifp->if_capabilities;
ifp->if_hwassist = CSUM_IP | CSUM_IP_UDP | CSUM_IP_TCP |
CSUM_IP6_UDP | CSUM_IP6_TCP;
IFQ_SET_MAXLEN(&ifp->if_snd, TXBUF_COUNT - 1);