1. 12 Jan, 2014 4 commits
    • Sabrina Dubroca's avatar
      alx: add stats update function · 5665dc64
      Sabrina Dubroca authored
      Signed-off-by: default avatarSabrina Dubroca <sd@queasysnail.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5665dc64
    • Sabrina Dubroca's avatar
      ac45a23c
    • Sabrina Dubroca's avatar
      19f66264
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · 6d71f164
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates
      
      This series contains updates to i40e and now i40evf.
      
      Most notable is Jacob's patch to add PTP support to i40e.
      
      Mitch cleans up additional memcpy's and use struct assignment instead.
      Then fixes long lines to appease checkpatch.pl.  Mitch then provides
      a fix to keep us from spamming the log with confusing errors.  If you
      use ip to change the MAC address of a VF while the VF driver is loaded,
      closing the VF interface or unloading the VF driver will cause the VF
      driver to remove the MAC filter for its original (now invalid) MAC
      address.
      
      Jesse cleans up macros which are no longer needed or used.
      
      I (Jeff) cleanup function header comments to ensure Doxygen/kdoc works
      correctly to generate documentation without warnings.
      
      Anjali fixes a bug where ethtool set-channels would return failure when
      configuring only one Rx queue.  Then fixes a bug where the driver was
      erroneously exiting the driver unload path if one part of the unload
      failed.
      
      Shannon fixes if the IPV6EXADD but is set in the Rx descriptor status,
      there was an optional extension header with an alternate IP address
      detected and the hardware checksum was not handling the alternate IP
      address correctly.  Then adjusts the ITR max and min values to match
      the hardware max value and recommended min value.  Shannon makes sure
      to clear the PXE mode after the adminq is initialized.
      
      v2:
       - fix patch 14 "i40e: enable PTP" to address Richard Cochran's spelling
         catch and Ben Hutchings Kconfig, SIOCGHWTSTAMP and sizeof() suggestions
       - added Paul Gortmaker's i40evf fix patch
      v3:
       - fix patch 14 "i40e: enable PTP" to address Ben Hutchings concerns about
         a race with PTP init and cleanup and i40e_get_ts_info().
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6d71f164
  2. 11 Jan, 2014 17 commits
  3. 10 Jan, 2014 16 commits
    • David S. Miller's avatar
      Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge · 45593c2b
      David S. Miller authored
      Included changes:
      - substitute FSF address with URL
      - deselect current bat-GW when GW-client mode gets deactivated
      - send every DHCP packet using bat-unicast messages when GW-client mode is
        enabled
      - implement the Extended Isolation mechanism (it is an enhancement of the
        already existing batman-AP-isolation). This mechanism allows the user to drop
        packets exchanged by selected clients by using netfilter marks.
      - fix typ0 in header guard
      - minor code cleanups
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      45593c2b
    • David S. Miller's avatar
      Merge branch 'tcp_metrics_saddr' · 795709af
      David S. Miller authored
      Christoph Paasch says:
      
      ====================
      Make tcp-metrics source-address aware
      
      Currently tcp-metrics only stores per-destination addresses. This brings
      problems, when a host has multiple interfaces (e.g., a smartphone having
      WiFi/3G):
      
      For example, a host contacting a server over WiFi will store the tcp-metrics
      per destination IP. If then the host contacts the same server over 3G, the
      same tcp-metrics will be used, although the path-characteristics are completly
      different (e.g., the ssthresh is probably not the same).
      
      In case of TFO this is not a problem, as the server will provide us a new cookie
      once he saw our SYN+DATA with an incorrect cookie.
      It may be (in case of carrier-grade NAT), that we keep the same public IP but
      have a different private IP. Thus, we better reuse the old cookie even if our
      source-IP has changed. However, this scenario is probably very uncommon, as
      carriers try to provide the same src-IP to the clients behind their CGN.
      
      Patches 1 + 2 add the source-IP to the tcp metrics.
      
      Patches 3 to 5 modify the netlink-api to support the source-IP. From now on,
      when using the command "ip tcp_metrics delete address ADDRESS" all entries
      which match this destination IP will be deleted.
      
      Today's iproute2 will complain when doing "ip tcp_metrics flush PREFIX" if
      several entries are present for the same destination-IP but with different
      source-IPs:
      
      root@client:~/test# ip tcp_metrics
      10.2.1.2 age 3.640sec rtt 16250us rttvar 15000us cwnd 10
      10.2.1.2 age 4.030sec rtt 18750us rttvar 15000us cwnd 10
      root@client:~/test# ip tcp_metrics flush 10.2.1.2/16
      Failed to send flush request
      : No such process
      
      Follow-up patches will modify iproute2 to handle this correctly and allow
      specifying the source-IP in the get/del commands.
      
      v2: Added the patch that allows to selectively get/del of tcp-metrics based
          on src-IP and moved the patch that adds the new netlink attribute before
          the other patches.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      795709af
    • Christoph Paasch's avatar
      tcp: metrics: Allow selective get/del of tcp-metrics based on src IP · 3e7013dd
      Christoph Paasch authored
      We want to be able to get/del tcp-metrics based on the src IP. This
      patch adds the necessary parsing of the netlink attribute and if the
      source address is set, it will match on this one too.
      Signed-off-by: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3e7013dd
    • Christoph Paasch's avatar
      tcp: metrics: Delete all entries matching a certain destination · bbf852b9
      Christoph Paasch authored
      As we now can have multiple entries per destination-IP, the "ip
      tcp_metrics delete address ADDRESS" command deletes all of them.
      Signed-off-by: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bbf852b9
    • Christoph Paasch's avatar
      tcp: metrics: New netlink attribute for src IP and dumped in netlink reply · 8a59359c
      Christoph Paasch authored
      This patch adds a new netlink attribute for the source-IP and appends it
      to the netlink reply. Now, iproute2 can have access to the source-IP.
      Signed-off-by: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8a59359c
    • Christoph Paasch's avatar
      tcp: metrics: Add source-address to tcp-metrics · a5443028
      Christoph Paasch authored
      We add the source-address to the tcp-metrics, so that different metrics
      will be used per source/destination-pair. We use the destination-hash to
      store the metric inside the hash-table. That way, deleting and dumping
      via "ip tcp_metrics" is easy.
      Signed-off-by: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a5443028
    • Christoph Paasch's avatar
      tcp: metrics: rename tcpm_addr to tcpm_daddr · 324fd55a
      Christoph Paasch authored
      As we will add also the source-address, we rename all accesses to the
      tcp-metrics address to use "daddr".
      Signed-off-by: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      324fd55a
    • David S. Miller's avatar
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next · 1a6c1e5b
      David S. Miller authored
      John W. Linville says:
      
      ====================
      Please pull these updates for the 3.14 stream!
      
      For the mac80211 bits, Johannes says:
      
      "Felix adds some helper functions for P2P NoA software tracking, Joe
      fixes alignment (but as this apparently never caused issues I didn't
      send it to 3.13), Kyeyoon/Jouni add QoS-mapping support (a Hotspot 2.0
      feature), Weilong fixed a bunch of checkpatch errors and I get to play
      fire-fighter or so and clean up other people's locking issues. I also
      added nl80211 vendor-specific events, as we'd discussed at the wireless
      summit."
      
      For the iwlwifi bits, Emmanuel says:
      
      "I have here a rework of the interrupt handling to meet RT kernel
      requirements - basically we don't take any lock in the primary interrupt
      handler. This gave me a good reason to clean things up a bit on the way.
      There is also a fix of the QoS mapping along with a few workarounds for
      hardware / firmware issues that are hard to hit.
      Three fixes suggested by static analyzers, and other various stuff.
      Most importantly, I update the Copyright note to include the new year."
      
      For the bluetooth bits, Gustavo says:
      
      "More patches to 3.14. The bulk of changes here is the 6LoWPAN support for
      Bluetooth LE Devices. The commits that touches net/ieee802154/ are already
      acked by David Miller. Other than that we have some RFCOMM fixes and
      improvements plus fixes and clean ups all over the tree."
      
      Beyond that, ath9k, brcmfmac, mwifiex, and wil6210 get their usual
      level of attention.  The wl1251 driver gets a number of updates,
      and there are a handful of other bits here and there.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1a6c1e5b
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · ef8570d8
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      This batch contains one single patch with the l2tp match
      for xtables, from James Chapman.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ef8570d8
    • John W. Linville's avatar
      Merge branch 'master' of... · 235f9392
      John W. Linville authored
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
      
      Conflicts:
      	net/ieee802154/6lowpan.c
      235f9392
    • Paul Durrant's avatar
      xen-netback: stop vif thread spinning if frontend is unresponsive · 11b57f90
      Paul Durrant authored
      The recent patch to improve guest receive side flow control (ca2f09f2) had a
      slight flaw in the wait condition for the vif thread in that any remaining
      skbs in the guest receive side netback internal queue would prevent the
      thread from sleeping. An unresponsive frontend can lead to a permanently
      non-empty internal queue and thus the thread will spin. In this case the
      thread should really sleep until the frontend becomes responsive again.
      
      This patch adds an extra flag to the vif which is set if the shared ring
      is full and cleared when skbs are drained into the shared ring. Thus,
      if the thread runs, finds the shared ring full and can make no progress the
      flag remains set. If the flag remains set then the thread will sleep,
      regardless of a non-empty queue, until the next event from the frontend.
      Signed-off-by: default avatarPaul Durrant <paul.durrant@citrix.com>
      Cc: Wei Liu <wei.liu2@citrix.com>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: David Vrabel <david.vrabel@citrix.com>
      Acked-by: default avatarWei Liu <wei.liu2@citrix.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      11b57f90
    • Hariprasad Shenai's avatar
    • Kuninori Morimoto's avatar
      irda: sh_sir: use devm_request_irq() · 4acb4d6c
      Kuninori Morimoto authored
      Huqiu reported current sh_sir driver doesn't
      call free_irq() in spite of using request_irq().
      This patch replaces request_irq() into devm_request_irq()
      to solve this issue
      
      Reported-by: Huqiu Liu<huqiuliu@gmail.com>
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4acb4d6c
    • Kuninori Morimoto's avatar
      irda: sh_irda: use devm_request_irq() · 033b06eb
      Kuninori Morimoto authored
      Huqiu reported current sh_irda driver doesn't
      call free_irq() in spite of using request_irq().
      This patch replaces request_irq() into devm_request_irq()
      to solve this issue
      
      Reported-by: Huqiu Liu<huqiuliu@gmail.com>
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      033b06eb
    • Kuninori Morimoto's avatar
      irda: fixup SH_SIR position on Kconfig · 90e8c72e
      Kuninori Morimoto authored
      SH_SIR is not Dongle
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      90e8c72e
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nftables · 751fcac1
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      nf_tables updates for net-next
      
      The following patchset contains the following nf_tables updates,
      mostly updates from Patrick McHardy, they are:
      
      * Add the "inet" table and filter chain type for this new netfilter
        family: NFPROTO_INET. This special table/chain allows IPv4 and IPv6
        rules, this should help to simplify the burden in the administration
        of dual stack firewalls. This also includes several patches to prepare
        the infrastructure for this new table and a new meta extension to
        match the layer 3 and 4 protocol numbers, from Patrick McHardy.
      
      * Load both IPv4 and IPv6 conntrack modules in nft_ct if the rule is used
        in NFPROTO_INET, as we don't certainly know which one would be used,
        also from Patrick McHardy.
      
      * Do not allow to delete a table that contains sets, otherwise these
        sets become orphan, from Patrick McHardy.
      
      * Hold a reference to the corresponding nf_tables family module when
        creating a table of that family type, to avoid the module deletion
        when in use, from Patrick McHardy.
      
      * Update chain counters before setting the chain policy to ensure that
        we don't leave the chain in inconsistent state in case of errors (aka.
        restore chain atomicity). This also fixes a possible leak if it fails
        to allocate the chain counters if no counters are passed to be restored,
        from Patrick McHardy.
      
      * Don't check for overflows in the table counter if we are just renaming
        a chain, from Patrick McHardy.
      
      * Replay the netlink request after dropping the nfnl lock to load the
        module that supports provides a chain type, from Patrick.
      
      * Fix chain type module references, from Patrick.
      
      * Several cleanups, function renames, constification and code
        refactorizations also from Patrick McHardy.
      
      * Add support to set the connmark, this can be used to set it based on
        the meta mark (similar feature to -j CONNMARK --restore), from
        Kristian Evensen.
      
      * A couple of fixes to the recently added meta/set support and nft_reject,
        and fix missing chain type unregistration if we fail to register our
        the family table/filter chain type, from myself.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      751fcac1
  4. 09 Jan, 2014 3 commits
    • Pablo Neira Ayuso's avatar
      netfilter: nf_tables: fix error path in the init functions · cf4dfa85
      Pablo Neira Ayuso authored
      We have to unregister chain type if this fails to register netns.
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      cf4dfa85
    • James Chapman's avatar
      netfilter: introduce l2tp match extension · 74f77a6b
      James Chapman authored
      Introduce an xtables add-on for matching L2TP packets. Supports L2TPv2
      and L2TPv3 over IPv4 and IPv6. As well as filtering on L2TP tunnel-id
      and session-id, the filtering decision can also include the L2TP
      packet type (control or data), protocol version (2 or 3) and
      encapsulation type (UDP or IP).
      
      The most common use for this will likely be to filter L2TP data
      packets of individual L2TP tunnels or sessions. While a u32 match can
      be used, the L2TP protocol headers are such that field offsets differ
      depending on bits set in the header, making rules for matching generic
      L2TP connections cumbersome. This match extension takes care of all
      that.
      Signed-off-by: default avatarJames Chapman <jchapman@katalix.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      74f77a6b
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · bfec4c3b
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates
      
      This series contains updates to i40e only.
      
      Anjali provides a fix where interrupts were not being re-enabled on ICR0
      even though they were auto masked by hardware.  Then provides a fix to
      cleanup RSS initialization because it was doing some extra work, so
      remove the extra work and any bugs it created when managing number of
      queues.  Since hardware requires a full packet template to be pointed to
      when adding hardware flow filters, add the template and use it for
      programming filters.
      
      Jesse provides a fix to replace the use of driver specific defines with
      kernel ETH_ALEN defines.  Then disables packet split because with the
      use of GRO, we do not need the extra bus overhead.  Fixes spelling
      error in code comment.
      
      Kamil provides a fix for the driver where the hardware expects the MAC
      address in a very specific format and the driver was filing the data
      incorrectly.
      
      Mitch provides a fix to resolve a panic on reset by adding checks to
      VSI->rx_rings.  Then shortens alloc_rx_buff_failed and
      alloc_rx_page_failed variables since both part of an RX specific
      structure so just remove the _rx part of the name.  Then fixes
      badly formatted lines, long lines and mis-formatted lines.
      
      Shannon provides a fix to call AQ to release any reservation held by this
      PF on the NVM resource lock on startup, in order to clear anything that
      might have been left over from a previous run.  Then removes interrupt on
      AQ error since nearly everything we do is synchronous, using the
      interrupt-on-error bit is unnecessary and causing unneeded interrupts.
      Adds code to handle the ability to send messages among the physical
      function interfaces by the admin queue.
      
      Catherine sets the MFP flag earlier in software init and uses that flag
      to decide if other hardware work-arounds are required which turns
      off flow director in MFP mode.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bfec4c3b