ixgbe: invalidate FCoE DDP context when no error status is available
authorYi Zou <[email protected]>
Wed, 17 Nov 2010 03:27:13 +0000 (19:27 -0800)
committerJeff Kirsher <[email protected]>
Wed, 17 Nov 2010 03:27:13 +0000 (19:27 -0800)
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 <[email protected]>
Tested-by: Ross Brattain <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ixgbe/ixgbe_fcoe.c

index 07346b8ebb044e46b143038a92cb9355ec680225..26dd27479e2c6cc82cbca0317cae8b405653eb8d 100644 (file)
@@ -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;