[openib-general] [PATCH] mthca: make IB_SEND_FENCE work

Muli Ben-Yehuda muli at il.ibm.com
Wed Aug 9 00:29:52 PDT 2006


On Wed, Aug 09, 2006 at 10:04:35AM +0300, Michael S. Tsirkin wrote:

> diff --git a/drivers/infiniband/hw/mthca/mthca_doorbell.h b/drivers/infiniband/hw/mthca/mthca_doorbell.h
> index dd9a44d..e5f0ad6 100644
> --- a/drivers/infiniband/hw/mthca/mthca_doorbell.h
> +++ b/drivers/infiniband/hw/mthca/mthca_doorbell.h
> @@ -42,6 +42,10 @@ #define MTHCA_RECEIVE_DOORBELL 0x18
>  #define MTHCA_CQ_DOORBELL      0x20
>  #define MTHCA_EQ_DOORBELL      0x28
>  
> +enum {
> +	MTHCA_SEND_DOORBELL_FENCE = 1 << 5
> +};

Does anonymous enum have any benefit over define for this?

Cheers,
Muli





More information about the general mailing list