29 Sep, 2014

2 commits


24 May, 2014

1 commit


17 May, 2014

2 commits


02 May, 2013

1 commit

  • Pull networking updates from David Miller:
    "Highlights (1721 non-merge commits, this has to be a record of some
    sort):

    1) Add 'random' mode to team driver, from Jiri Pirko and Eric
    Dumazet.

    2) Make it so that any driver that supports configuration of multiple
    MAC addresses can provide the forwarding database add and del
    calls by providing a default implementation and hooking that up if
    the driver doesn't have an explicit set of handlers. From Vlad
    Yasevich.

    3) Support GSO segmentation over tunnels and other encapsulating
    devices such as VXLAN, from Pravin B Shelar.

    4) Support L2 GRE tunnels in the flow dissector, from Michael Dalton.

    5) Implement Tail Loss Probe (TLP) detection in TCP, from Nandita
    Dukkipati.

    6) In the PHY layer, allow supporting wake-on-lan in situations where
    the PHY registers have to be written for it to be configured.

    Use it to support wake-on-lan in mv643xx_eth.

    From Michael Stapelberg.

    7) Significantly improve firewire IPV6 support, from YOSHIFUJI
    Hideaki.

    8) Allow multiple packets to be sent in a single transmission using
    network coding in batman-adv, from Martin Hundebøll.

    9) Add support for T5 cxgb4 chips, from Santosh Rastapur.

    10) Generalize the VXLAN forwarding tables so that there is more
    flexibility in configurating various aspects of the endpoints.
    From David Stevens.

    11) Support RSS and TSO in hardware over GRE tunnels in bxn2x driver,
    from Dmitry Kravkov.

    12) Zero copy support in nfnelink_queue, from Eric Dumazet and Pablo
    Neira Ayuso.

    13) Start adding networking selftests.

    14) In situations of overload on the same AF_PACKET fanout socket, or
    per-cpu packet receive queue, minimize drop by distributing the
    load to other cpus/fanouts. From Willem de Bruijn and Eric
    Dumazet.

    15) Add support for new payload offset BPF instruction, from Daniel
    Borkmann.

    16) Convert several drivers over to mdoule_platform_driver(), from
    Sachin Kamat.

    17) Provide a minimal BPF JIT image disassembler userspace tool, from
    Daniel Borkmann.

    18) Rewrite F-RTO implementation in TCP to match the final
    specification of it in RFC4138 and RFC5682. From Yuchung Cheng.

    19) Provide netlink socket diag of netlink sockets ("Yo dawg, I hear
    you like netlink, so I implemented netlink dumping of netlink
    sockets.") From Andrey Vagin.

    20) Remove ugly passing of rtnetlink attributes into rtnl_doit
    functions, from Thomas Graf.

    21) Allow userspace to be able to see if a configuration change occurs
    in the middle of an address or device list dump, from Nicolas
    Dichtel.

    22) Support RFC3168 ECN protection for ipv6 fragments, from Hannes
    Frederic Sowa.

    23) Increase accuracy of packet length used by packet scheduler, from
    Jason Wang.

    24) Beginning set of changes to make ipv4/ipv6 fragment handling more
    scalable and less susceptible to overload and locking contention,
    from Jesper Dangaard Brouer.

    25) Get rid of using non-type-safe NLMSG_* macros and use nlmsg_*()
    instead. From Hong Zhiguo.

    26) Optimize route usage in IPVS by avoiding reference counting where
    possible, from Julian Anastasov.

    27) Convert IPVS schedulers to RCU, also from Julian Anastasov.

    28) Support cpu fanouts in xt_NFQUEUE netfilter target, from Holger
    Eitzenberger.

    29) Network namespace support for nf_log, ebt_log, xt_LOG, ipt_ULOG,
    nfnetlink_log, and nfnetlink_queue. From Gao feng.

    30) Implement RFC3168 ECN protection, from Hannes Frederic Sowa.

    31) Support several new r8169 chips, from Hayes Wang.

    32) Support tokenized interface identifiers in ipv6, from Daniel
    Borkmann.

    33) Use usbnet_link_change() helper in USB net driver, from Ming Lei.

    34) Add 802.1ad vlan offload support, from Patrick McHardy.

    35) Support mmap() based netlink communication, also from Patrick
    McHardy.

    36) Support HW timestamping in mlx4 driver, from Amir Vadai.

    37) Rationalize AF_PACKET packet timestamping when transmitting, from
    Willem de Bruijn and Daniel Borkmann.

    38) Bring parity to what's provided by /proc/net/packet socket dumping
    and the info provided by netlink socket dumping of AF_PACKET
    sockets. From Nicolas Dichtel.

    39) Fix peeking beyond zero sized SKBs in AF_UNIX, from Benjamin
    Poirier"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1722 commits)
    filter: fix va_list build error
    af_unix: fix a fatal race with bit fields
    bnx2x: Prevent memory leak when cnic is absent
    bnx2x: correct reading of speed capabilities
    net: sctp: attribute printl with __printf for gcc fmt checks
    netlink: kconfig: move mmap i/o into netlink kconfig
    netpoll: convert mutex into a semaphore
    netlink: Fix skb ref counting.
    net_sched: act_ipt forward compat with xtables
    mlx4_en: fix a build error on 32bit arches
    Revert "bnx2x: allow nvram test to run when device is down"
    bridge: avoid OOPS if root port not found
    drivers: net: cpsw: fix kernel warn on cpsw irq enable
    sh_eth: use random MAC address if no valid one supplied
    3c509.c: call SET_NETDEV_DEV for all device types (ISA/ISAPnP/EISA)
    tg3: fix to append hardware time stamping flags
    unix/stream: fix peeking with an offset larger than data in queue
    unix/dgram: fix peeking with an offset larger than data in queue
    unix/dgram: peek beyond 0-sized skbs
    openvswitch: Remove unneeded ovs_netdev_get_ifindex()
    ...

    Linus Torvalds
     

29 Mar, 2013

1 commit


12 Mar, 2013

1 commit

  • sdio_boot.c and netlink_k.c both have a corresponding header file with
    their function prototypes but fail to include them, which leads to the
    following sparse warnings:
    sdio_boot.c:135:5: warning: symbol 'sdio_boot' was not declared. Should it be static?
    netlink_k.c:89:13: warning: symbol 'netlink_init' was not declared. Should it be static?
    netlink_k.c:109:6: warning: symbol 'netlink_exit' was not declared. Should it be static?
    netlink_k.c:114:5: warning: symbol 'netlink_send' was not declared. Should it be static?

    -> Add the include files and silence the warning

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     

31 Oct, 2012

1 commit


11 Sep, 2012

1 commit

  • It is a frequent mistake to confuse the netlink port identifier with a
    process identifier. Try to reduce this confusion by renaming fields
    that hold port identifiers portid instead of pid.

    I have carefully avoided changing the structures exported to
    userspace to avoid changing the userspace API.

    I have successfully built an allyesconfig kernel with this change.

    Signed-off-by: "Eric W. Biederman"
    Acked-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Eric W. Biederman
     

09 Sep, 2012

1 commit


27 Jul, 2012

1 commit

  • Pull staging tree patches from Greg Kroah-Hartman:
    "Here's the big staging tree merge for the 3.6-rc1 merge window.

    There are some patches in here outside of drivers/staging/, notibly
    the iio code (which is still stradeling the staging / not staging
    boundry), the pstore code, and the tracing code. All of these have
    gotten acks from the various subsystem maintainers to be included in
    this tree. The pstore and tracing patches are related, and are coming
    here as they replace one of the android staging drivers.

    Otherwise, the normal staging mess. Lots of cleanups and a few new
    drivers (some iio drivers, and the large csr wireless driver
    abomination.)

    Signed-off-by: Greg Kroah-Hartman "

    Fixed up trivial conflicts in drivers/staging/comedi/drivers/s626.h and
    drivers/staging/gdm72xx/netlink_k.c

    * tag 'staging-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1108 commits)
    staging: csr: delete a bunch of unused library functions
    staging: csr: remove csr_utf16.c
    staging: csr: remove csr_pmem.h
    staging: csr: remove CsrPmemAlloc
    staging: csr: remove CsrPmemFree()
    staging: csr: remove CsrMemAllocDma()
    staging: csr: remove CsrMemCalloc()
    staging: csr: remove CsrMemAlloc()
    staging: csr: remove CsrMemFree() and CsrMemFreeDma()
    staging: csr: remove csr_util.h
    staging: csr: remove CsrOffSetOf()
    stating: csr: remove unneeded #includes in csr_util.c
    staging: csr: make CsrUInt16ToHex static
    staging: csr: remove CsrMemCpy()
    staging: csr: remove CsrStrLen()
    staging: csr: remove CsrVsnprintf()
    staging: csr: remove CsrStrDup
    staging: csr: remove CsrStrChr()
    staging: csr: remove CsrStrNCmp
    staging: csr: remove CsrStrCmp
    ...

    Linus Torvalds
     

30 Jun, 2012

1 commit

  • This patch adds the following structure:

    struct netlink_kernel_cfg {
    unsigned int groups;
    void (*input)(struct sk_buff *skb);
    struct mutex *cb_mutex;
    };

    That can be passed to netlink_kernel_create to set optional configurations
    for netlink kernel sockets.

    I've populated this structure by looking for NULL and zero parameters at the
    existing code. The remaining parameters that always need to be set are still
    left in the original interface.

    That includes optional parameters for the netlink socket creation. This allows
    easy extensibility of this interface in the future.

    This patch also adapts all callers to use this new interface.

    Signed-off-by: Pablo Neira Ayuso
    Signed-off-by: David S. Miller

    Pablo Neira Ayuso
     

29 Jun, 2012

1 commit

  • Conflicts:
    drivers/net/caif/caif_hsi.c
    drivers/net/usb/qmi_wwan.c

    The qmi_wwan merge was trivial.

    The caif_hsi.c, on the other hand, was not. It's a conflict between
    1c385f1fdf6f9c66d982802cd74349c040980b50 ("caif-hsi: Replace platform
    device with ops structure.") in the net-next tree and commit
    39abbaef19cd0a30be93794aa4773c779c3eb1f3 ("caif-hsi: Postpone init of
    HIS until open()") in the net tree.

    I did my best with that one and will ask Sjur to check it out.

    Signed-off-by: David S. Miller

    David S. Miller
     

27 Jun, 2012

2 commits

  • And use nlmsg_data() while we're here too.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • The NLMSG_PUT() macro contains a hidden goto that jumps to the
    nlmsg_failure label. Since the sk_buff was allocated before the macro,
    jumping to the nlmsg_failure label leaks the memory allocated for it.

    Calling kfree() before returning would fix it, but is better to avoid
    using this error prone macro and use nlmsg_put() instead.

    Also, use nlmsg_data() instead of NLMSG_DATA() to check type.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Greg Kroah-Hartman

    Javier Martinez Canillas
     

26 Jun, 2012

1 commit


15 Jun, 2012

1 commit

  • This patch modifies the gdm72xx driver to properly release a netlink
    socket using netlink_kernel_release. It fixes the following kernel
    crash, which occurs after repeatedly suspending and resuming a system.

    kernel BUG at /home/benchan/trunk/src/third_party/kernel/files/mm/slub.c:3471!
    invalid opcode: 0000 [#1] SMP
    CPU 2
    Modules linked in: asix usbnet snd_hda_codec_hdmi
    snd_hda_codec_cirrus i2c_dev uinput snd_hda_intel snd_hda_codec
    snd_hwdep snd_pcm snd_timer bluetooth snd_page_alloc fuse aesni_intel
    cryptd isl29018(C) aes_x86_64 industrialio(C) memconsole nm10_gpio
    rtc_cmos nf_conntrack_ipv6 nf_defrag_ipv6 r8169 ath9k mac80211
    ip6table_filter ath9k_common ath9k_hw ath cfg80211 xt_mark ip6_tables
    uvcvideo videobuf2_core videodev videobuf2_vmalloc videobuf2_memops
    gdmwm(C) joydev

    Pid: 3125, comm: kworker/u:30 Tainted: G WC 3.4.0 #1
    RIP: 0010:[] [] kfree+0x67/0xca
    RSP: 0018:ffff880134977d60 EFLAGS: 00010246
    RAX: 4000000000000400 RBX: ffffffff818832a0 RCX: 0000000000000000
    RDX: 4000000000000000 RSI: 0000000000000000 RDI: ffffffff818832a0
    RBP: ffff880134977d80 R08: 00000000ffffffff R09: ffffea00000620c0
    R10: ffffffff8111b729 R11: ffff880149fb3840 R12: ffffffff81a08840
    R13: ffffffff813f5bc3 R14: ffffffff8138ed84 R15: 0000000000000000
    FS: 0000000000000000(0000) GS:ffff88014fb00000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 00007f7cad963110 CR3: 000000000180b000 CR4: 00000000000407e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process kworker/u:30 (pid: 3125, threadinfo ffff880134976000, task ffff8801330647e0)
    Stack:
    0000000000000002 ffffffff818832a0 ffffffff81a08840 ffff880134977df0
    ffff880134977da0 ffffffff813f5bc3 ffff880134977df0 ffffffff81883250
    ffff880134977dd0 ffffffff8138e64c 0000000180150010 ffffffff81883250
    Call Trace:
    [] ipv4_sysctl_exit_net+0x23/0x27
    [] ops_exit_list+0x27/0x50
    [] cleanup_net+0xee/0x17c
    [] process_one_work+0x199/0x2b8
    [] worker_thread+0x13c/0x222
    [] ? manage_workers.isra.26+0x171/0x171
    [] kthread+0x8b/0x93
    [] kernel_thread_helper+0x4/0x10
    [] ? __init_kthread_worker+0x39/0x39
    [] ? gs_change+0xb/0xb
    Code: 83 c4 10 49 83 3c 24 00 eb e4 48 83 fb 10 76 76 48 89 df e8 17
    e1 ff ff 49 89 c1 48 8b 00 a8 80 75 15 49 f7 01 00 c0 00 00 75 02
    0b 4c 89 cf e8 b8 b4 fd ff eb 4f 4c 8b 55 08 49 8b 79 30 48
    RIP [] kfree+0x67/0xca
    RSP

    Signed-off-by: Ben Chan
    Cc: Sage Ahn
    Signed-off-by: Greg Kroah-Hartman

    Ben Chan
     

13 Jun, 2012

1 commit


15 May, 2012

1 commit