]> git.baikalelectronics.ru Git - kernel.git/commit
cnic: Fix the type field in SPQ messages
authorMichael Chan <mchan@broadcom.com>
Wed, 5 Jan 2011 15:14:13 +0000 (15:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2011 19:27:22 +0000 (11:27 -0800)
commit8e4923d5ce97652dfdc3d84eb7fea6967f2d4409
tree8f95cc15abcc81b0a3e47ec2c370373bd9c02219
parenta1a1e24c8197af8c411d95337fc9e6c51a376fef
cnic: Fix the type field in SPQ messages

The new firmware interface requires each Slow Path Queue (SPQ) message's
type field to include the function number.  The existing code does not
do this consistently.  We fix this by OR'ing in the function number
into the type field centrally in cnic_submit_kwqe_16().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c