From 1c3515d2d514b1d8f8e13a5f4142e1bffacae051 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Wed, 27 Feb 2013 05:03:35 +0000 Subject: [PATCH] RX checksum offloading on old Yukon controllers seem to cause more problems. Disable RX checksum offloading on controllers that don't use new descriptor format but give chance to enable it with ifconfig(8). --- sys/dev/msk/if_msk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index d0ca808c8ef..664575c77c6 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -1695,6 +1695,12 @@ msk_attach(device_t dev) ifp->if_capabilities |= IFCAP_VLAN_HWCSUM; } ifp->if_capenable = ifp->if_capabilities; + /* + * Disable RX checksum offloading on controllers that don't use + * new descriptor format but give chance to enable it. + */ + if ((sc_if->msk_flags & MSK_FLAG_DESCV2) == 0) + ifp->if_capenable &= ~IFCAP_RXCSUM; /* * Tell the upper layer(s) we support long frames.