stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org, Hiral Shah <hishah@cisco.com>,
	Sesidhar Baddela <sebaddel@cisco.com>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 3.16-stable 37/87] fnic: assign FIP_ALL_FCF_MACS to fcoe_all_fcfs
Date: Mon, 06 Nov 2017 17:41:31 +0000	[thread overview]
Message-ID: <1509990091.2748.104.camel@decadent.org.uk> (raw)
In-Reply-To: <20170505194745.3627137-38-arnd@arndb.de>

[-- Attachment #1: Type: text/plain, Size: 3680 bytes --]

On Fri, 2017-05-05 at 21:46 +0200, Arnd Bergmann wrote:
> From: Hiral Shah <hishah@cisco.com>
> 
> Commit fffd96e05f5a23eaff542951e7d3ae4ec2f6258f upstream.
> 
> 1) Assgning FIP_ALL_FCF_MACS to fcoe_all_fcfs allows VLAN request to be sent
> to correct Mac address for VLAN Discovery otherwise VLAN request will be
> sent to invalid address hence FLOGI never happens.
> 
> 2) Simplify the copy_and_format_trace_data code and log the correct Link event
> for fnic control path tracing in case of link status UP->UP.
> 
> 3) Increment Fnic driver version

This commit is doing several different things to a driver that hasn't
had any bug fixes in 3.16-stable.  I'm not comfortable with cherry-
picking one just to fix a warning.

Ben.

> Signed-off-by: Hiral Shah <hishah@cisco.com>
> Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/scsi/fnic/fnic.h       | 2 +-
>  drivers/scsi/fnic/fnic_fcs.c   | 5 +++--
>  drivers/scsi/fnic/fnic_trace.c | 5 ++---
>  3 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h
> index 1d3521e13d77..bf8d34c26f13 100644
> --- a/drivers/scsi/fnic/fnic.h
> +++ b/drivers/scsi/fnic/fnic.h
> @@ -39,7 +39,7 @@
>  
>  #define DRV_NAME		"fnic"
>  #define DRV_DESCRIPTION		"Cisco FCoE HBA Driver"
> -#define DRV_VERSION		"1.6.0.10"
> +#define DRV_VERSION		"1.6.0.11"
>  #define PFX			DRV_NAME ": "
>  #define DFX                     DRV_NAME "%d: "
>  
> diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi/fnic/fnic_fcs.c
> index 1b948f633fc5..f3984b48f8e9 100644
> --- a/drivers/scsi/fnic/fnic_fcs.c
> +++ b/drivers/scsi/fnic/fnic_fcs.c
> @@ -35,7 +35,7 @@
>  #include "cq_enet_desc.h"
>  #include "cq_exch_desc.h"
>  
> -static u8 fcoe_all_fcfs[ETH_ALEN];
> +static u8 fcoe_all_fcfs[ETH_ALEN] = FIP_ALL_FCF_MACS;
>  struct workqueue_struct *fnic_fip_queue;
>  struct workqueue_struct *fnic_event_queue;
>  
> @@ -101,13 +101,14 @@ void fnic_handle_link(struct work_struct *work)
>  				FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
>  					     "link up\n");
>  				fcoe_ctlr_link_up(&fnic->ctlr);
> -			} else
> +			} else {
>  				/* UP -> UP */
>  				spin_unlock_irqrestore(&fnic->fnic_lock, flags);
>  				fnic_fc_trace_set_data(
>  					fnic->lport->host->host_no, FNIC_FC_LE,
>  					"Link Status: UP_UP",
>  					strlen("Link Status: UP_UP"));
> +			}
>  		}
>  	} else if (fnic->link_status) {
>  		/* DOWN -> UP */
> diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c
> index c77285926827..121a5d7e98c4 100644
> --- a/drivers/scsi/fnic/fnic_trace.c
> +++ b/drivers/scsi/fnic/fnic_trace.c
> @@ -743,7 +743,7 @@ void copy_and_format_trace_data(struct fc_trace_hdr *tdata,
>  
>  	fmt = "%02d:%02d:%04ld %02d:%02d:%02d.%09lu ns%8x       %c%8x\t";
>  	len += snprintf(fnic_dbgfs_prt->buffer + len,
> -		(fnic_fc_trace_max_pages * PAGE_SIZE * 3) - len,
> +		max_size - len,
>  		fmt,
>  		tm.tm_mon + 1, tm.tm_mday, tm.tm_year + 1900,
>  		tm.tm_hour, tm.tm_min, tm.tm_sec,
> @@ -767,8 +767,7 @@ void copy_and_format_trace_data(struct fc_trace_hdr *tdata,
>  				j == ethhdr_len + fcoehdr_len + fchdr_len ||
>  				(i > 3 && j%fchdr_len == 0)) {
>  				len += snprintf(fnic_dbgfs_prt->buffer
> -					+ len, (fnic_fc_trace_max_pages
> -					* PAGE_SIZE * 3) - len,
> +					+ len, max_size - len,
>  					"\n\t\t\t\t\t\t\t\t");
>  				i++;
>  			}
-- 
Ben Hutchings
It is a miracle that curiosity survives formal education. - Albert
Einstein


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-11-06 17:41 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 19:46 [PATCH 3.16-stable 00/87] build warnings and errors Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 01/87] mm/init: fix zone boundary creation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 02/87] Disable "frame-address" warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 03/87] modpost: expand pattern matching to support substring matches Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 04/87] modpost: don't emit section mismatch warnings for compiler optimizations Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 05/87] module: fix types of device tables aliases Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 06/87] MODULE_DEVICE_TABLE: fix some callsites Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 07/87] mm/hugetlb: improve locking in dissolve_free_huge_pages() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 08/87] cpumask_set_cpu_local_first => cpumask_local_spread, lament Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 09/87] gfs2: avoid uninitialized variable warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 10/87] gfs2: remove IS_ERR_VALUE abuse Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 11/87] iio: fix printk format string warning Arnd Bergmann
2017-11-06 16:55   ` Ben Hutchings
2017-05-05 19:46 ` [PATCH 3.16-stable 12/87] iio: adc: fix building on 64-bit Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 13/87] infiniband: mlx5: avoid a compile-time warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 14/87] power/reset: xgene-reset: Fix prototype of xgene_restart() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 15/87] mfd: arizona: Rid data size incompatibility warn when building for 64bit Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 16/87] Input: joystick - use get_cycles on ARMv8 Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 17/87] dma: pl08x: Use correct specifier for size_t values Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 18/87] gpio: drop retval check enforcing from gpiochip_remove() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 19/87] ASoC: fsl-ssi: fix do_div build warning in fsl_ssi_set_bclk() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 20/87] ASoC: imx-audmux: Use uintptr_t for port numbers Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 21/87] ASoC: fsl_sai: Set SYNC bit of TCR2 to Asynchronous Mode Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 22/87] ASoC: adau1977: Fix truncation warning on 64 bit architectures Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 23/87] ALSA: oxygen: Fix logical-not-parentheses warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 24/87] ata: hpt366: fix constant cast warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 25/87] clk/efm32gg: fix dt init prototype Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 26/87] spi: rspi: Remove unused variable in rspi_rz_transfer_one() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 27/87] spi/atmel: Fix pointer to int conversion warnings on 64 bit builds Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 28/87] spi/pl022: Explicitly truncate large bitmask Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 29/87] tty: nozomi: avoid a harmless gcc warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 30/87] tty/isicom: fix big-endian compile warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 31/87] i2o: hide unsafe ioctl on 64-bit Arnd Bergmann
2017-05-05 20:07   ` Patch "[PATCH 3.16-stable 31/87] i2o: hide unsafe ioctl on 64-bit" has been added to the 3.18-stable tree gregkh
2017-05-05 19:46 ` [PATCH 3.16-stable 32/87] dm bufio: hide bogus warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 33/87] scsi-tgt: fix type conversion warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 34/87] ips: remove pointless #warning Arnd Bergmann
2017-11-06 17:31   ` Ben Hutchings
2017-05-05 19:46 ` [PATCH 3.16-stable 35/87] scsi: advansys: remove #warning message Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 36/87] bfa: Fix indentation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 37/87] fnic: assign FIP_ALL_FCF_MACS to fcoe_all_fcfs Arnd Bergmann
2017-11-06 17:41   ` Ben Hutchings [this message]
2017-05-05 19:46 ` [PATCH 3.16-stable 38/87] be2iscsi: Fix bogus WARN_ON length check Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 39/87] mvsas: fix misleading indentation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 40/87] paride: fix the "verbose" module param Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 41/87] aic94xx: Skip reading user settings if flash is not found Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 42/87] mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 43/87] mtd: maps: rbtx4939-flash: delete an unused variable in rbtx4939_flash_remove Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 44/87] xilinx: Fix compiler warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 45/87] i40e: Reduce stack in i40e_dbg_dump_desc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 46/87] mlx5: avoid build warnings on 32-bit Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 47/87] mISDN: avoid arch specific __builtin_return_address call Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 48/87] cpmac: remove hopeless #warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 49/87] net: caif: fix misleading indentation Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 50/87] net: am2150: fix nmclan_cs.c shared interrupt handling Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 51/87] am2150: Update nmclan_cs.c to use update PCMCIA API Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 52/87] net: tulip: turn compile-time warning into dev_warn() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 53/87] net: vxge: avoid unused function warnings Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 54/87] ethernet: amd: fix pci device ids Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 55/87] drivers/net/ethernet/dec/tulip/uli526x.c: fix misleading indentation in uli526x_timer Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 56/87] hostap: avoid uninitialized variable use in hfa384x_get_rid Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 57/87] iwlegacy: avoid warning about missing braces Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 58/87] brcmfmac: avoid gcc-5.1 warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 59/87] netfilter: Fix switch statement warnings with recent gcc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 60/87] netfilter; Add some missing default cases to switch statements in nft_reject Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 61/87] drm/i915: cleanup some indenting Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 62/87] video: mx3fb: always enable BACKLIGHT_LCD_SUPPORT Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 63/87] staging: bcm: add 32-bit host dependency Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 64/87] staging: imx-drm: fix indentation warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 65/87] staging: vt6655: fix overly large stack usage Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 66/87] Staging: iio: adc: fix indent on break statement Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 67/87] Staging: lustre: missing curly braces in ll_setattr_raw() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 68/87] staging: rtl8723au: core: rtw_wlan_util: fix misleading indentation Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 69/87] Staging: wlan-ng: fix sparse warning in prism2fw.c Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 70/87] staging: dgnc: Fix frame size is larger than 1024B Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 71/87] x86/xen: fix upper bound of pmd loop in xen_cleanhighmap() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 72/87] x86/boot: Add CONFIG_PARAVIRT_SPINLOCKS quirk to arch/x86/boot/compressed/misc.h Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 73/87] ARM: cns3xxx: shut up frame size warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 74/87] ARM: 8383/1: nommu: avoid deprecated source register on mov Arnd Bergmann
2017-05-06  9:45   ` Arnd Bergmann
2017-05-06 10:06     ` Russell King - ARM Linux
2017-05-08 19:53       ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 75/87] ARM: 8221/1: PJ4: allow building in Thumb-2 mode Arnd Bergmann
2017-05-06  7:42   ` Ard Biesheuvel
2017-05-08 19:47     ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 76/87] ARM: OMAP: Fix Kconfig warning for omap1 Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 77/87] ARM: 8160/1: drop warning about return_address not using unwind tables Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 78/87] ARM: 8296/1: cache-l2x0: clean up aurora cache handling Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 79/87] arm64: add missing data types in smp_load_acquire/smp_store_release Arnd Bergmann
2017-11-06 18:56   ` Ben Hutchings
2017-11-06 20:24     ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 80/87] MIPS: BMIPS: Fix ".previous without corresponding .section" warnings Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 81/87] MIPS: DEC: Avoid la pseudo-instruction in delay slots Arnd Bergmann
2017-11-06 19:05   ` Ben Hutchings
2017-05-05 19:47 ` [PATCH 3.16-stable 82/87] MIPS: ip27: Disable qlge driver in defconfig Arnd Bergmann
2017-11-06 19:08   ` Ben Hutchings
2017-05-05 19:47 ` [PATCH 3.16-stable 83/87] MIPS: ip22: Fix ip28 build for modern gcc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 84/87] MIPS: MSP71xx: remove odd locking in PCI config space access code Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 85/87] MIPS: Fix the build on jz4740 after removing the custom gpio.h Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 86/87] MIPS: TXx9: Delete an unused variable in tx4927_pcibios_setup Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 87/87] MIPS: elf2ecoff: Fix warning due to dead code Arnd Bergmann
2017-11-06 19:14 ` [PATCH 3.16-stable 00/87] build warnings and errors Ben Hutchings

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=1509990091.2748.104.camel@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=arnd@arndb.de \
    --cc=hch@lst.de \
    --cc=hishah@cisco.com \
    --cc=sebaddel@cisco.com \
    --cc=stable@vger.kernel.org \
    /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).