Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:ARM:Staging
ethtool
ethtool-don-t-fall-back-to-grxfhindir-when-cont...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ethtool-don-t-fall-back-to-grxfhindir-when-context-w.patch of Package ethtool
From: Edward Cree <ecree@solarflare.com> Date: Mon, 19 Mar 2018 16:52:06 +0000 Subject: ethtool: don't fall back to grxfhindir when context was specified Patch-mainline: v4.16 Git-commit: 7984d34ea893a529330b6addb959cbf6e3ec026f References: fate#326122 bsc#1105557 In do_grfxh(), if rss_context is non-zero, we must not fall back to do_grxfhindir() if ETHTOOL_GRSSH fails, for that reads the default RSS context and not the one specified. Fixes: f5d55b967e0c ("ethtool: add support for extra RSS contexts and RSS steering filters") Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Acked-by: Michal Kubecek <mkubecek@suse.cz> --- ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethtool.c b/ethtool.c index 5d7c12d85e2c..295954221750 100644 --- a/ethtool.c +++ b/ethtool.c @@ -3710,7 +3710,7 @@ static int do_grxfh(struct cmd_context *ctx) rss_head.cmd = ETHTOOL_GRSSH; rss_head.rss_context = rss_context; err = send_ioctl(ctx, &rss_head); - if (err < 0 && errno == EOPNOTSUPP) { + if (err < 0 && errno == EOPNOTSUPP && !rss_context) { return do_grxfhindir(ctx, &ring_count); } else if (err < 0) { perror("Cannot get RX flow hash indir size and/or key size"); -- 2.19.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor