Bug 179877

Summary: RFE: support multiple commands on command line
Product: [Fedora] Fedora Reporter: Tom "spot" Callaway <tcallawa>
Component: ethtoolAssignee: Jeff Garzik <jgarzik>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: james.brown, notting, peterm
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-21 19:35:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
add ETHTOOL_PAUSE_OPTS handing none

Description Tom "spot" Callaway 2006-02-03 16:10:23 UTC
Description of problem:

Currently, there is no easy way similar to ETHTOOL_OPTS in ifcfg-eth* to
automatically configure pause control. ETHTOOL_OPTS in ifup-eth always uses
"ethtool -s", but to do flow control, we really want a second invocation of
"ethtool -A ...". 

This is a trivial item to fix, it involves the creation of ETHTOOL_PAUSE_OPTS,
and handling it in ifup-eth the same way as ETHTOOL_OPTS. Patch is attached to
this bug ticket.

Comment 1 Tom "spot" Callaway 2006-02-03 16:10:23 UTC
Created attachment 124108 [details]
add ETHTOOL_PAUSE_OPTS handing

Comment 3 Bill Nottingham 2006-02-03 16:34:00 UTC
Hm, but what if someone then wants to change the -G settings, etc - another
commandline option and invocation?

Perhaps we can... convince... the ethtool upstream to allow multiple commands on
the command line.


Comment 4 Tom "spot" Callaway 2006-02-03 16:44:24 UTC
That would also be an acceptable approach.

Comment 5 Bill Nottingham 2006-02-03 16:56:57 UTC
Pushing to ethtool for the moment - allowing multiple commands on the command
line would make this much simpler.

Comment 6 Jon Stanley 2008-04-23 20:29:23 UTC
Adding FutureFeature keyword to RFE's.

Comment 9 Jeff Garzik 2008-08-21 19:35:29 UTC
To repeat the answer that has been repeated since 2002:

ethtool utility is a small, lightweight utility that has a 1-1 correspondence between ethtool commands and the ethtool ioctls it issues to the kernel. (some of 'list' commands excepted)  A single ethtool invocation performs a single ethtool ioctl.

Inside the kernel, a single ethtool ioctl is the smallest unit of atomicity available.  The userspace utility matches that interface.

If you want to issue multiple ioctls, fix your infrastructure to perform multiple ethtool(1) invocations.

A simple, looping shell script will easily solve this bug.  If it makes people happy, call this script "ethtool-multi".