mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
selftests: drv-net: gro: run the test against HW GRO and LRO
Run the test against HW GRO and LRO. NICs I have pass the base cases. Interestingly all are happy to build GROs larger than 64k. Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260113000740.255360-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -248,9 +248,12 @@ class NetDrvEpEnv(NetDrvEnvBase):
|
||||
if not self.addr_v[ipver] or not self.remote_addr_v[ipver]:
|
||||
raise KsftSkipEx(f"Test requires IPv{ipver} connectivity")
|
||||
|
||||
def require_nsim(self):
|
||||
if self._ns is None:
|
||||
def require_nsim(self, nsim_test=True):
|
||||
"""Require or exclude netdevsim for this test"""
|
||||
if nsim_test and self._ns is None:
|
||||
raise KsftXfailEx("Test only works on netdevsim")
|
||||
if nsim_test is False and self._ns is not None:
|
||||
raise KsftXfailEx("Test does not work on netdevsim")
|
||||
|
||||
def _require_cmd(self, comm, key, host=None):
|
||||
cached = self._required_cmd.get(comm, {})
|
||||
|
||||
Reference in New Issue
Block a user