Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 914717 Details for
Bug 1116397
Add a check in set_offload, set_ringparam and set_coalesce
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for exception handling of set_offload in pethtool
file_1116397.txt (text/plain), 1.06 KB, created by
sumanth k
on 2014-07-04 13:00:05 UTC
(
hide
)
Description:
Patch for exception handling of set_offload in pethtool
Filename:
MIME Type:
Creator:
sumanth k
Created:
2014-07-04 13:00:05 UTC
Size:
1.06 KB
patch
obsolete
>--- python-ethtool-0.11/pethtool.py.org 2014-07-02 15:10:59.622971063 +0530 >+++ python-ethtool-0.11/pethtool.py 2014-07-02 15:14:43.875683364 +0530 >@@ -169,7 +169,11 @@ def set_coalesce(interface, args): > if not changed: > return > >- ethtool.set_coalesce(interface, coal) >+ try: >+ ethtool.set_coalesce(interface, coal) >+ except: >+ printtab("Cannot set coalesce options") >+ sys.exit(1) > > def show_offload(interface, args = None): > try: >@@ -205,7 +209,9 @@ def set_offload(interface, args): > try: > ethtool.set_tso(interface, value) > except: >- pass >+ printtab("Cannot change tcp-segmentation-offload") >+ printtab("Could not change any device features") >+ sys.exit(1) > > ethtool_ringparam_msgs = ( > ( "Pre-set maximums", ), >@@ -273,8 +279,11 @@ def set_ringparam(interface, args): > > if not changed: > return >- >- ethtool.set_ringparam(interface, ring) >+ try: >+ ethtool.set_ringparam(interface, ring) >+ except: >+ printtab("Cannot set RX/TX ring parameters") >+ sys.exit(1) > > def show_driver(interface, args = None): > try: > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1116397
: 914717