1. 21 Mar, 2019 34 commits
  2. 20 Mar, 2019 6 commits
    • Stephen Suryaputra's avatar
      ipv6: Add icmp_echo_ignore_anycast for ICMPv6 · 0b03a5ca
      Stephen Suryaputra authored
      In addition to icmp_echo_ignore_multicast, there is a need to also
      prevent responding to pings to anycast addresses for security.
      Signed-off-by: default avatarStephen Suryaputra <ssuryaextr@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0b03a5ca
    • YueHaibing's avatar
      net: isdn: Make isdn_ppp_mp_discard and isdn_ppp_mp_reassembly static · a534ea30
      YueHaibing authored
      Fix sparse warnings:
      
      drivers/isdn/i4l/isdn_ppp.c:1891:16: warning:
       symbol 'isdn_ppp_mp_discard' was not declared. Should it be static?
      drivers/isdn/i4l/isdn_ppp.c:1903:6: warning:
       symbol 'isdn_ppp_mp_reassembly' was not declared. Should it be static?
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a534ea30
    • YueHaibing's avatar
      net: hns3: Make hclge_destroy_cmd_queue static · 881d7afd
      YueHaibing authored
      Fix sparse warning:
      
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:414:6:
       warning: symbol 'hclge_destroy_cmd_queue' was not declared. Should it be static?
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      881d7afd
    • David S. Miller's avatar
      Merge branch 'net-refactor-ndo_select_queue' · 75d317c4
      David S. Miller authored
      Paolo Abeni says:
      
      ====================
      net: refactor ndo_select_queue()
      
      Currently, on most devices implementing ndo_select_queue(), we get 2
      indirect calls per xmit packet, at least in some scenarios.
      
      We can avoid one of such indirect calls refactoring the ndo_select_queue()
      usage so that we don't need anymore the 'fallback' argument.
      
      The first patch renames a helper used later as a public API, the second one
      changes the af packet implementation so that it uses the common infrastructure
      to select the xmit queue, and the second patch drops the now unneeded argument
      from ndo_select_queue().
      
      Alternatively we could use the INDIRECT_CALL_WRAPPER infrastructure to avoid
      the fallback indirect call in the common case, but this solution allows also
      for some code cleanup.
      
       v1 -> v2:
        - renamed select queue helpers, as per Eric's and David's suggestions
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      75d317c4
    • Paolo Abeni's avatar
      net: remove 'fallback' argument from dev->ndo_select_queue() · a350ecce
      Paolo Abeni authored
      After the previous patch, all the callers of ndo_select_queue()
      provide as a 'fallback' argument netdev_pick_tx.
      The only exceptions are nested calls to ndo_select_queue(),
      which pass down the 'fallback' available in the current scope
      - still netdev_pick_tx.
      
      We can drop such argument and replace fallback() invocation with
      netdev_pick_tx(). This avoids an indirect call per xmit packet
      in some scenarios (TCP syn, UDP unconnected, XDP generic, pktgen)
      with device drivers implementing such ndo. It also clean the code
      a bit.
      
      Tested with ixgbe and CONFIG_FCOE=m
      
      With pktgen using queue xmit:
      threads		vanilla 	patched
      		(kpps)		(kpps)
      1		2334		2428
      2		4166		4278
      4		7895		8100
      
       v1 -> v2:
       - rebased after helper's name change
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a350ecce
    • Paolo Abeni's avatar
      packet: rework packet_pick_tx_queue() to use common code selection · b71b5837
      Paolo Abeni authored
      Currently packet_pick_tx_queue() is the only caller of
      ndo_select_queue() using a fallback argument other than
      netdev_pick_tx.
      
      Leveraging rx queue, we can obtain a similar queue selection
      behavior using core helpers. After this change, ndo_select_queue()
      is always invoked with netdev_pick_tx() as fallback.
      We can change ndo_select_queue() signature in a followup patch,
      dropping an indirect call per transmitted packet in some scenarios
      (e.g. TCP syn and XDP generic xmit)
      
      This changes slightly how af packet queue selection happens when
      PACKET_QDISC_BYPASS is set. It's now more similar to plan dev_queue_xmit()
      tacking in account both XPS and TC mapping.
      
       v1  -> v2:
        - rebased after helper name change
       RFC -> v1:
        - initialize sender_cpu to the expected value
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b71b5837