diff options
author | Robert Love <robert.w.love@intel.com> | 2010-03-24 11:02:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-26 19:56:03 +0100 |
commit | a7551b75fe47fb6fb70f679935845e741c5e0855 (patch) | |
tree | 935b004c4fcda47771a68255dec2f8feb2e154b1 /drivers/net/seeq8005.h | |
parent | ixgbe: cleanup maximum number of tx queues (diff) | |
download | linux-a7551b75fe47fb6fb70f679935845e741c5e0855.tar.xz linux-a7551b75fe47fb6fb70f679935845e741c5e0855.zip |
ixgbe: Don't allow user buffer count to exceed 256
If the user buffer count was 256 the shift would place a 1
in the offset region leading to errors. It also overwrites
the uers buffer list. This patch makes sure that at most
256 user buffers are allowed for DDP and the buffer count
is masked properly such that it doesn't overwrite the offset
when shifting the bits.
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Frank Zhang <frank_1.zhang@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/seeq8005.h')
0 files changed, 0 insertions, 0 deletions