From: Yi Zou Date: Wed, 17 Nov 2010 03:27:13 +0000 (-0800) Subject: ixgbe: invalidate FCoE DDP context when no error status is available X-Git-Tag: v2.6.38-rc1~476^2~547^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ca371e484e2e5ceb9b90fdb83d8d251017d852b;p=platform%2Fkernel%2Flinux-stable.git ixgbe: invalidate FCoE DDP context when no error status is available The hw automatically invalidates the context if DDP is successful or there is error detected. In case there is no error status available from the hw, initializing the per context error status to be 1 allows the DDP context to be still invalidated via the upper layer call to ddp_put(). Signed-off-by: Yi Zou Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ixgbe/ixgbe_fcoe.c b/drivers/net/ixgbe/ixgbe_fcoe.c index 07346b8..26dd274 100644 --- a/drivers/net/ixgbe/ixgbe_fcoe.c +++ b/drivers/net/ixgbe/ixgbe_fcoe.c @@ -68,7 +68,7 @@ static inline bool ixgbe_rx_is_fcoe(union ixgbe_adv_rx_desc *rx_desc) static inline void ixgbe_fcoe_clear_ddp(struct ixgbe_fcoe_ddp *ddp) { ddp->len = 0; - ddp->err = 0; + ddp->err = 1; ddp->udl = NULL; ddp->udp = 0UL; ddp->sgl = NULL;