Bug 734720 - net_cls.classid value read and write format should be better explained
Summary: net_cls.classid value read and write format should be better explained
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-Resource_Management_Guide
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Prpič
QA Contact: Jan Tluka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-31 09:35 UTC by Jan Tluka
Modified: 2011-12-07 12:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-07 12:44:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Tluka 2011-08-31 09:35:32 UTC
Description of problem:

While looking at current statement about net_cls.classid value in the doc I think it's just wrong!

<snip>
... net_cls.classid contains a single value in hexadecimal ...
</snip>

It contains (if we consider looking at the file content) decimal value. After converting this number to hexadecimal we get the expected classid used in tc program.

The number conversions around net_cls.classid is quite confusing so I propose adding something like:

<enhancement>
The value of classid read from net_cls.classid file is presented in
decimal while data to be written to the file is expected in hexadecimal.
For example while working with class id 10:1,

# echo 0x100001 > net_cls.classid
# cat net_cls.classid
1048577

( 100001 )16 == 1048577
</enhancement>

Version-Release number of selected component (if applicable):

manual identifier: doc-Resource_Management_Guide


Note You need to log in before you can comment on or make changes to this bug.