From: Ron Mercer Date: Mon, 1 Oct 2007 18:43:23 +0000 (-0700) Subject: qla3xxx: bugfix: Fix VLAN rx completion handling. X-Git-Tag: upstream/snapshot3+hdmi~31064^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50626297b1beb0a29c0f174be39f36485533216c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git qla3xxx: bugfix: Fix VLAN rx completion handling. Fix 4032 chip undocumented "feature" where bit-8 is set if the inbound completion is for a VLAN. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index c3fe1c7..ea15131 100755 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c @@ -2249,6 +2249,12 @@ static int ql_tx_rx_clean(struct ql3_adapter *qdev, net_rsp = qdev->rsp_current; rmb(); + /* + * Fix 4032 chipe undocumented "feature" where bit-8 is set if the + * inbound completion is for a VLAN. + */ + if (qdev->device_id == QL3032_DEVICE_ID) + net_rsp->opcode &= 0x7f; switch (net_rsp->opcode) { case OPCODE_OB_MAC_IOCB_FN0: