[net-next,S3,07/13] i40e: print FCoE capability reported by the device function
diff mbox

Message ID 1428450342-48517-7-git-send-email-catherine.sullivan@intel.com
State Accepted
Delegated to: Jeff Kirsher
Headers show

Commit Message

Catherine Sullivan April 7, 2015, 11:45 p.m. UTC
From: Vasu Dev <vasu.dev@intel.com>

This is to allow quick check for FCoE capability is enabled or not
in device function before any SW overrides.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Change-ID: I5f78ba798d566f143161273156916c6f4074496e
---
 drivers/net/ethernet/intel/i40e/i40e_common.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jeff Kirsher April 7, 2015, 11:54 p.m. UTC | #1
On Tue, 2015-04-07 at 19:45 -0400, Catherine Sullivan wrote:
> From: Vasu Dev <vasu.dev@intel.com>
> 
> This is to allow quick check for FCoE capability is enabled or not
> in device function before any SW overrides.
> 
> Signed-off-by: Vasu Dev <vasu.dev@intel.com>
> Change-ID: I5f78ba798d566f143161273156916c6f4074496e
> ---
>  drivers/net/ethernet/intel/i40e/i40e_common.c | 3 +++
>  1 file changed, 3 insertions(+)

Thanks Catherine, I have added your patch to my queue.
James Young April 14, 2015, 4:40 p.m. UTC | #2
-----Original Message-----
From: Kirsher, Jeffrey T 
Sent: Tuesday, April 07, 2015 4:55 PM
To: Sullivan, Catherine; Young, James M
Cc: intel-wired-lan@lists.osuosl.org
Subject: Re: [Intel-wired-lan] [net-next S3 07/13] i40e: print FCoE capability reported by the device function

On Tue, 2015-04-07 at 19:45 -0400, Catherine Sullivan wrote:
> From: Vasu Dev <vasu.dev@intel.com>
> 
> This is to allow quick check for FCoE capability is enabled or not in 
> device function before any SW overrides.
> 
> Signed-off-by: Vasu Dev <vasu.dev@intel.com>
> Change-ID: I5f78ba798d566f143161273156916c6f4074496e
> ---
>  drivers/net/ethernet/intel/i40e/i40e_common.c | 3 +++
>  1 file changed, 3 insertions(+)

Thanks Catherine, I have added your patch to my queue.
--
git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git
dev-queue

Tested-by: Jim Young <james.m.young@intel.com>

Patch
diff mbox

diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index d596f66..44dc4b1 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -2546,6 +2546,9 @@  static void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff,
 		}
 	}
 
+	if (p->fcoe)
+		i40e_debug(hw, I40E_DEBUG_ALL, "device is FCoE capable\n");
+
 	/* Software override ensuring FCoE is disabled if npar or mfp
 	 * mode because it is not supported in these modes.
 	 */