]> git.baikalelectronics.ru Git - kernel.git/commit
bond_sysfs: use real_num_tx_queues rather than params.tx_queue
authorJiri Pirko <jiri@resnulli.us>
Fri, 20 Jul 2012 02:28:50 +0000 (02:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 18:07:00 +0000 (11:07 -0700)
commit19ebc379b43f9445182f3e19bc5978070f2f2be2
treee15f4ee726e166d5df599d7621a909985be566b2
parent12eda84f75c6d19fbf880a4943d9353551125892
bond_sysfs: use real_num_tx_queues rather than params.tx_queue

Since now number of tx queues can be specified during bond instance
creation and therefore it may differ from params.tx_queues, use rather
real_num_tx_queues for boundary check.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c