netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Jon Mason <jon.mason@exar.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>,
	Bruce Allan <bruce.w.allan@intel.com>,
	Alex Duyck <alexander.h.duyck@intel.com>,
	PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>,
	John Ronciak <john.ronciak@intel.com>,
	David Miller <davem@davemloft.net>,
	netdev@vger.kernel.org, e1000-devel@lists.sourceforge.net
Subject: Re: [PATCH] ixgbe: ixgbe_fcoe build break
Date: Tue, 3 Aug 2010 14:55:47 -0700	[thread overview]
Message-ID: <AANLkTi==NOe4w-=yHw8KptSyCpT+ir9X32W3z2_km0sN@mail.gmail.com> (raw)
In-Reply-To: <1280851078-4263-1-git-send-email-jon.mason@exar.com>

On Tue, Aug 3, 2010 at 08:57, Jon Mason <jon.mason@exar.com> wrote:
> struct ixgbe_fcoe has fields that are #ifdef'ed with CONFIG_IXGBE_DCB.
> However, not all references to those fields check for CONFIG_IXGBE_DCB.
> This patch adds the necessary check to allow for ixgbe to compile.
>
> Signed-off-by: Jon Mason <jon.mason@exar.com>
> ---
>  drivers/net/ixgbe/ixgbe_main.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
> index 7d6a415..9ec3dfe 100644
> --- a/drivers/net/ixgbe/ixgbe_main.c
> +++ b/drivers/net/ixgbe/ixgbe_main.c
> @@ -6155,9 +6155,11 @@ static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb)
>                        txq &= (adapter->ring_feature[RING_F_FCOE].indices - 1);
>                        txq += adapter->ring_feature[RING_F_FCOE].mask;
>                        return txq;
> +#ifdef CONFIG_IXGBE_DCB
>                } else if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
>                        txq = adapter->fcoe.up;
>                        return txq;
> +#endif
>                }
>        }
>  #endif
> @@ -6218,8 +6220,10 @@ static netdev_tx_t ixgbe_xmit_frame(struct sk_buff *skb,
>             skb->protocol == htons(ETH_P_FIP))) {
>                tx_flags &= ~(IXGBE_TX_FLAGS_VLAN_PRIO_MASK
>                              << IXGBE_TX_FLAGS_VLAN_SHIFT);
> +#ifdef CONFIG_IXGBE_DCB
>                tx_flags |= ((adapter->fcoe.up << 13)
>                              << IXGBE_TX_FLAGS_VLAN_SHIFT);
> +#endif
>                /* flag for FCoE offloads */
>                if (skb->protocol == htons(ETH_P_FCOE))
>                        tx_flags |= IXGBE_TX_FLAGS_FCOE;
> --

Thanks Jon.  I think I may already have a patch in my queue with this
fix, but if I do not, I make sure to add your patch.

-- 
Cheers,
Jeff

      reply	other threads:[~2010-08-03 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 15:57 [PATCH] ixgbe: ixgbe_fcoe build break Jon Mason
2010-08-03 21:55 ` Jeff Kirsher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi==NOe4w-=yHw8KptSyCpT+ir9X32W3z2_km0sN@mail.gmail.com' \
    --to=jeffrey.t.kirsher@intel.com \
    --cc=alexander.h.duyck@intel.com \
    --cc=bruce.w.allan@intel.com \
    --cc=davem@davemloft.net \
    --cc=e1000-devel@lists.sourceforge.net \
    --cc=jesse.brandeburg@intel.com \
    --cc=john.ronciak@intel.com \
    --cc=jon.mason@exar.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).