bnx2: Allow user-specified multiple advertisement speed values.
authorMichael Chan <mchan@broadcom.com>
Mon, 15 Feb 2010 19:42:10 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 23:19:04 +0000 (15:19 -0800)
commitbeb499afe3c9c006bb2d66ceaff0f354d0405ff4
tree466ad188870ef4a212e0c3116071c6e1dc363edf
parent5726026bfffa13e9b1098d7bc177618cbbaa9388
bnx2: Allow user-specified multiple advertisement speed values.

Remove unnecessary code that works around older versions of ethtool
that can pass down invalid advertisement speed values.  This old
code prevents the user from specifying multiple advertisement values.
The new code uses simple masking to mask out invalid advertisment bits.

Reported-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c