1. 19 1月, 2013 5 次提交
    • J
      ixgbe: SR-IOV: dynamic IEEE DCBx default priority changes · 610a63fc
      John Fastabend 提交于
      IEEE DCBx has a mechanism to change the default user priority. In
      the normal case the OS can handle this via cgroups, iptables, socket,
      options etc.
      
      With SR-IOV and direct assigned VF devices the default priority
      needs to be set by the PF device so the inserted VLAN tag is
      correct.
      Signed-off-by: NJohn Fastabend <john.r.fastabend@intel.com>
      Tested-by: NPhil Schmitt <phillip.j.schmitt@intel.com>
      Tested-by: NMarcus Dennis <marcusx.e.dennis@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      610a63fc
    • D
      enic: change sprintf() to snprintf() · 4505f40a
      Dan Carpenter 提交于
      These are copying data into 16 char arrays.  They all specify that the
      first string can't be more than 11 characters but once you add on the
      "-rx-" and the NUL character there isn't space for the %d.
      
      The first string is probably never going to be 11 characters, but if it
      is then let's truncate the string instead of corrupting memory.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4505f40a
    • F
      smsc: smc911x: Fix sparse warnings · 6b80778d
      Fabio Estevam 提交于
      ioremap returns 'void __iomem *' type.
      
      Fix the following build warnings:
      
      drivers/net/ethernet/smsc/smc911x.c:2079:14: warning: incorrect type in assignment (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2079:14:    expected unsigned int *addr
      drivers/net/ethernet/smsc/smc911x.c:2079:14:    got void [noderef] <asn:2>*
      drivers/net/ethernet/smsc/smc911x.c:2086:18: warning: incorrect type in assignment (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2086:18:    expected void [noderef] <asn:2>*base
      drivers/net/ethernet/smsc/smc911x.c:2086:18:    got unsigned int *addr
      drivers/net/ethernet/smsc/smc911x.c:2091:25: warning: incorrect type in argument 1 (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2091:25:    expected void volatile [noderef] <asn:2>*addr
      drivers/net/ethernet/smsc/smc911x.c:2091:25:    got unsigned int *addr
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b80778d
    • M
      net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors · fae50823
      Mugunthan V N 提交于
      When there is heavy transmission traffic in the CPDMA, then Rx descriptors
      memory is also utilized as tx desc memory looses all rx descriptors and the
      driver stops working then.
      
      This patch adds boundary for tx and rx descriptors in bd ram dividing the
      descriptor memory to ensure that during heavy transmission tx doesn't use
      rx descriptors.
      
      This patch is already applied to davinci_emac driver, since CPSW and
      davici_dmac shares the same CPDMA, moving the boundry seperation from
      Davinci EMAC driver to CPDMA driver which was done in the following
      commit
      
      commit 86d8c07f
      Author: Sascha Hauer <s.hauer@pengutronix.de>
      Date:   Tue Jan 3 05:27:47 2012 +0000
      
          net/davinci: do not use all descriptors for tx packets
      
          The driver uses a shared pool for both rx and tx descriptors.
          During open it queues fixed number of 128 descriptors for receive
          packets. For each received packet it tries to queue another
          descriptor. If this fails the descriptor is lost for rx.
          The driver has no limitation on tx descriptors to use, so it
          can happen during a nmap / ping -f attack that the driver
          allocates all descriptors for tx and looses all rx descriptors.
          The driver stops working then.
          To fix this limit the number of tx descriptors used to half of
          the descriptors available, the rx path uses the other half.
      
          Tested on a custom board using nmap / ping -f to the board from
          two different hosts.
      Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fae50823
    • F
      net: fec: enable pause frame to improve rx prefomance for 1G network · baa70a5c
      Frank Li 提交于
      The limition of imx6 internal bus cause fec can't achieve 1G perfomance.
      There will be many packages lost because FIFO over run.
      
      This patch enable pause frame flow control.
      
      Before this patch
      iperf -s -i 1
      TCP window size: 85.3 KByte (default)
      ------------------------------------------------------------
      [  4] local 10.192.242.153 port 5001 connected with 10.192.242.94 port 49773
      [ ID] Interval       Transfer     Bandwidth
      [  4]  0.0- 1.0 sec  6.35 MBytes  53.3 Mbits/sec
      [  4]  1.0- 2.0 sec  3.39 MBytes  28.5 Mbits/sec
      [  4]  2.0- 3.0 sec  2.63 MBytes  22.1 Mbits/sec
      [  4]  3.0- 4.0 sec  1.10 MBytes  9.23 Mbits/sec
      
      ifconfig
         RX packets:46195 errors:1859 dropped:1 overruns:1859 frame:1859
      
      After this patch
      iperf -s -i 1
      
      [  4] local 10.192.242.153 port 5001 connected with 10.192.242.94 port 49757
      [ ID] Interval       Transfer     Bandwidth
      [  4]  0.0- 1.0 sec  49.8 MBytes   418 Mbits/sec
      [  4]  1.0- 2.0 sec  50.1 MBytes   420 Mbits/sec
      [  4]  2.0- 3.0 sec  47.5 MBytes   399 Mbits/sec
      [  4]  3.0- 4.0 sec  45.9 MBytes   385 Mbits/sec
      [  4]  4.0- 5.0 sec  44.8 MBytes   376 Mbits/sec
      
      ifconfig
         RX packets:2348454 errors:0 dropped:16 overruns:0 frame:0
      Signed-off-by: NFrank Li <Frank.Li@freescale.com>
      Signed-off-by: NFugang Duan <B38611@freescale.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      baa70a5c
  2. 18 1月, 2013 14 次提交
  3. 17 1月, 2013 1 次提交
  4. 16 1月, 2013 20 次提交