OSDN Git Service

ixgbe - DDP last user buffer - error to warn
authorAmir Hanania <amir.hanania@intel.com>
Thu, 28 Apr 2011 08:47:23 +0000 (08:47 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Aug 2011 11:43:00 +0000 (04:43 -0700)
Change the error message in the last DDP user buffer to warn_once

Signed-off-by: Amir Hanania <amir.hanania@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c

index 824edae..e9b992f 100644 (file)
@@ -241,10 +241,12 @@ static int ixgbe_fcoe_ddp_setup(struct net_device *netdev, u16 xid,
         */
        if (lastsize == bufflen) {
                if (j >= IXGBE_BUFFCNT_MAX) {
-                       e_err(drv, "xid=%x:%d,%d,%d:addr=%llx "
-                               "not enough user buffers. We need an extra "
-                               "buffer because lastsize is bufflen.\n",
-                               xid, i, j, dmacount, (u64)addr);
+                       printk_once("Will NOT use DDP since there are not "
+                                   "enough user buffers. We need an  extra "
+                                   "buffer because lastsize is bufflen. "
+                                   "xid=%x:%d,%d,%d:addr=%llx\n",
+                                   xid, i, j, dmacount, (u64)addr);
+
                        goto out_noddp_free;
                }