03 Oct, 2014

3 commits

  • In 34666d4 ("netfilter: bridge: move br_netfilter out of the core"),
    the bridge netfilter code has been modularized.

    Use IS_ENABLED instead of ifdef to cover the module case.

    Fixes: 34666d4 ("netfilter: bridge: move br_netfilter out of the core")
    Signed-off-by: Pablo Neira Ayuso

    Pablo Neira Ayuso
     
  • Move nf_send_reset() and nf_send_reset6() to nf_reject_ipv4 and
    nf_reject_ipv6 respectively. This code is shared by x_tables and
    nf_tables.

    Signed-off-by: Pablo Neira Ayuso

    Pablo Neira Ayuso
     
  • This patch introduces the NFT_REJECT_ICMPX_UNREACH type which provides
    an abstraction to the ICMP and ICMPv6 codes that you can use from the
    inet and bridge tables, they are:

    * NFT_REJECT_ICMPX_NO_ROUTE: no route to host - network unreachable
    * NFT_REJECT_ICMPX_PORT_UNREACH: port unreachable
    * NFT_REJECT_ICMPX_HOST_UNREACH: host unreachable
    * NFT_REJECT_ICMPX_ADMIN_PROHIBITED: administratevely prohibited

    You can still use the specific codes when restricting the rule to match
    the corresponding layer 3 protocol.

    I decided to not overload the existing NFT_REJECT_ICMP_UNREACH to have
    different semantics depending on the table family and to allow the user
    to specify ICMP family specific codes if they restrict it to the
    corresponding family.

    Signed-off-by: Pablo Neira Ayuso

    Pablo Neira Ayuso
     

02 Oct, 2014

2 commits


01 Oct, 2014

27 commits

  • Commit 3243acd37fd9
    ("ieee802154: add __init to lowpan_frags_sysctl_register")

    added __init to lowpan_frags_ns_sysctl_register instead of
    lowpan_frags_sysctl_register

    Suggested-by: Alexander Aring
    Signed-off-by: Fabian Frederick
    Signed-off-by: David S. Miller

    Fabian Frederick
     
  • David L Stevens says:

    ====================
    sunvnet: add jumbo frames support

    This patch set updates the sunvnet driver to version 1.6 of the VIO protocol
    to support per-port exchange of MTU information and allow non-standard MTU
    sizes, including jumbo frames.

    Using large MTUs shows a nearly 5X throughput improvement Linux-Solaris
    and > 10X throughput improvement Linux-Linux.

    Changes from v8:
    -add a short timeout to free pending skbs if a new transmit doesn't
    do it first per Dave Miller
    Changes from v7:
    -handle skb allocation failures in vnet_skb_shape()
    per Dave Miller
    Changes from v6:
    -made kernel transmit path zero-copy to remove memory n^2 scaling issue
    raised by Raghuram Kothakota
    Changes from v5:
    - fixed comment per Sowmini Varadhan
    Changes from v4:
    - changed VNET_MAXPACKET per David Laight
    - added cookies to support non-contiguous buffers of max size
    Changes from v3:
    - added version functions per Dave Miller
    - moved rmtu to vnet_port per Dave Miller
    - explicitly set options bits and capability flags to 0 per
    Raghuram Kothakota
    Changes from v2:
    - make checkpatch clean
    Changes from v1:
    - fix brace formatting per Dave Miller
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch sends ICMP and ICMPv6 messages for Path MTU Discovery when a remote
    port MTU is smaller than the device MTU. This allows mixing newer VIO protocol
    devices that support MTU negotiation with older devices that do not on the
    same vswitch. It also allows Linux-Linux LDOMs to use 64K-1 data packets even
    though Solaris vswitch is limited to
    Signed-off-by: David S. Miller

    David L Stevens
     
  • This patch allows an admin to set the MTU on a sunvnet device to arbitrary
    values between the minimum (68) and maximum (65535) IPv4 packet sizes.

    Signed-off-by: David L Stevens
    Signed-off-by: David S. Miller

    David L Stevens
     
  • This patch removes pre-allocated transmit buffers and instead directly maps
    pending packets on demand. This saves O(n^2) maximum-sized transmit buffers,
    for n hosts on a vswitch, as well as a copy to those buffers.

    Single-stream TCP throughput linux-solaris dropped ~5% for 1500-byte MTU,
    but linux-linux at 1500-bytes increased ~20%.

    Signed-off-by: David L Stevens
    Signed-off-by: David S. Miller

    David L Stevens
     
  • This patch upgrades the sunvnet driver to support VIO protocol version 1.6.
    In particular, it adds per-port MTU negotiation, allowing MTUs other than
    ETH_FRAMELEN with ports using newer VIO protocol versions.

    Signed-off-by: David L Stevens
    Signed-off-by: David S. Miller

    David L Stevens
     
  • No caller uses the return value, so make this function return void.

    Signed-off-by: Li RongQing
    Signed-off-by: David S. Miller

    Li RongQing
     
  • lowpan_frags_sysctl_register is only called by __init lowpan_net_frag_init
    (part of the lowpan module).

    Signed-off-by: Fabian Frederick
    Signed-off-by: David S. Miller

    Fabian Frederick
     
  • irlan_open is only called by __init irlan_init in same module.

    Signed-off-by: Fabian Frederick
    Signed-off-by: David S. Miller

    Fabian Frederick
     
  • Fix:

    arch/mips/net/bpf_jit.c: In function 'build_body':
    arch/mips/net/bpf_jit.c:762:6: error: unused variable 'tmp'
    cc1: all warnings being treated as errors
    make[2]: *** [arch/mips/net/bpf_jit.o] Error 1

    Seen when building mips:allmodconfig in -next since next-20140924.

    Signed-off-by: Guenter Roeck
    Signed-off-by: David S. Miller

    Guenter Roeck
     
  • Antoine Tenart says:

    ====================
    ARM: Berlin: Ethernet support

    This series introduce support for the Ethernet controller on Berlin SoCs,
    using the existing pxa168 Ethernet driver. In order to do this, DT
    support is added to the driver alongside some other modifications and
    fixes.

    This has been tested on a Berlin BG2Q DMP board.

    Changes since v5:
    - fixed the build when building the driver as a module

    Changes since v4:
    - removed the phy-addr property and added a phy subnode
    - added COMPILE_TEST for the pxa168_eth driver

    Changes since v3:
    - moved the addition of pxa168_eth_get_mac_address() to the patch
    using it first

    Changes since v2:
    - reworked how the MAC address is configured
    - made the clock anonymous

    Changes since v1:
    - removed custom Berlin Ethernet driver
    - used the pxa168 Ethernet driver instead
    - made modifications to the pxa168 driver (DT support, fixes)
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch enables the Ethernet port on the Marvell Berlin2Q DMP board.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • This patch adds the Ethernet node, enabling the network unit on Berlin
    BG2Q SoCs.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • Add a dependency to COMPILE_TEST so that the driver can be compiled for
    test purposes.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • Berlin SoCs have an Ethernet controller compatible with the pxa168.
    Allow these SoCs to use the pxa168_eth driver.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • This patch rework the way the MAC address is retrieved. The MAC address
    can now, in addition to being random, be set in the device tree or
    retrieved from the Ethernet controller MAC address registers. The
    probing function will try to get a MAC address in the following order:
    - From the device tree.
    - From the Ethernet controller MAC address registers.
    - Generate a random one.

    This patch also adds a function to read the MAC address from the
    Ethernet Controller registers.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • When changing the MAC address, in addition to updating the dev_addr in
    the net_device structure, this patch also update the MAC address
    registers (high and low) of the Ethernet controller with the new MAC.
    The address stored in these registers is used for IEEE 802.3x Ethernet
    flow control, which is already enabled.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • IEEE 802.3x Ethernet flow control is disabled when bit (1 << 2) is set
    in the port status register. Fix the flow control detection in the link
    event handling function which was relying on the opposite assumption.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • This adds the binding documentation for the Marvell PXA168 Ethernet
    controller, following its DT support.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • Add the device tree support to the pxa168_eth driver.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • Clean up a bit the pxa168_eth driver before adding the device tree
    support.

    Signed-off-by: Antoine Tenart
    Acked-by: Arnd Bergmann
    Signed-off-by: David S. Miller

    Antoine Ténart
     
  • Or Gerlitz says:

    ====================
    mlx4_core driver updates

    A series from Jack and Co of low-level fixes for the mlx4_core driver
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • ConnectX2 HCAs have max_mtu=4k and max_vl=8 vls. However, if you specify
    a 4K mtu, the max_vl supported for 4K is 4 vls. The driver at startup
    attempts to set a 4K mtu using the max_vl value obtained from QUERY_PORT.

    Since the max_vl value is 8 vls (which is supported up to 2K mtu size),
    the first attempt to set the mtl/vl port value will fail, generating
    the following error message in the log:

    mlx4_core 0000:06:00.0: command 0xc failed: fw status = 0x40

    The driver then tries again, using mtu=4k, vls=4, and this succeeds.

    Since we do not want to have this error message always displayed at driver
    start when there are ConnectX2 HCAs on the host, we deprecate the error
    message for this specific command/input_modifier/opcode_modifier/fw-status
    to be debug.

    Signed-off-by: Jack Morgenstein
    Signed-off-by: Or Gerlitz
    Signed-off-by: David S. Miller

    Jack Morgenstein
     
  • The function mlx4_QUERY_PORT_wrapper implements only the
    QUERY_PORT "general" case (opcode modifier = 0).

    Verify that the opcode modifier is zero, and also that the
    input modifier contains only the port number in bits 0..7
    (all other bits should be zero).

    Signed-off-by: Jack Morgenstein
    Signed-off-by: Or Gerlitz
    Signed-off-by: David S. Miller

    Jack Morgenstein
     
  • In the new flow, we separate the pci initialization and teardown
    from the initialization and teardown of the other resources.

    __mlx4_init_one handles the pci resources initialization. It then
    calls mlx4_load_one to initialize the remainder of the resources.

    When removing a device, mlx4_remove_one is invoked. However, now
    mlx4_remove_one calls mlx4_unload_one to free all the resources except the pci
    resources. When mlx4_unload_one returns, mlx4_remove_one then frees the
    pci resources.

    The above separation will allow us to implement 'reset flow' in the future.
    It will also enable more EQs for VFs and is a pre-step to the modern API to
    enable/disable SRIOV.

    Also added nvfs; an integer array of size MLX4_MAX_PORTS + 1; to the mlx4_dev
    struct. This new field is used to avoid parsing the num_vfs module parameter
    each time the mlx4_restart_one is called.

    Signed-off-by: Majd Dibbiny
    Signed-off-by: Or Gerlitz
    Signed-off-by: David S. Miller

    Majd Dibbiny
     
  • When unloading the host driver while there are VFs active on VMs,
    the PF driver disabled sriov anyway, causing kernel crashes.

    We now leave SRIOV enabled, to avoid that.

    When the driver is reloaded, __mlx4_init_one is invoked on the PF.
    It now checks to see if SRIOV is already enabled on the PF -- and
    if so does not enable sriov again.

    Signed-off-by: Tal Alon
    Signed-off-by: Jack Morgenstein
    Signed-off-by: Or Gerlitz
    Signed-off-by: David S. Miller

    Jack Morgenstein
     
  • Eric reports build failure with
    CONFIG_BRIDGE_NETFILTER=n

    We insist to build br_nf_core.o unconditionally, but we must only do so
    if br_netfilter was enabled, else it fails to build due to
    functions being defined to empty stubs (and some structure members
    being defined out).

    Also, BRIDGE_NETFILTER=y|m makes no sense when BRIDGE=n.

    Fixes: 34666d467 (netfilter: bridge: move br_netfilter out of the core)
    Reported-by: Eric Dumazet
    Signed-off-by: Florian Westphal
    Signed-off-by: Pablo Neira Ayuso
    Signed-off-by: David S. Miller

    Florian Westphal
     

30 Sep, 2014

8 commits