17 Dec, 2007

2 commits

  • This patch fixes:
    CHECK /home/kernel/src/net/irda/parameters.c
    /home/kernel/src/net/irda/parameters.c:466:2: warning: Using plain integer as NULL pointer
    /home/kernel/src/net/irda/parameters.c:520:2: warning: Using plain integer as NULL pointer
    /home/kernel/src/net/irda/parameters.c:573:2: warning: Using plain integer as NULL pointer

    Signed-off-by: Richard Knutsson
    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    Richard Knutsson
     
  • While testing the mcs7780 based IrDA USB dongle I've stumbled upon
    memory leak in irlmp_unregister_link(). Hashbin for lsaps is created in
    irlmp_register_link and should probably be freed in irlmp_unregister_link().

    Signed-off-by: Hinko Kocevar
    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    Hinko Kocevar
     

05 Dec, 2007

1 commit


22 Nov, 2007

1 commit


20 Nov, 2007

1 commit


01 Nov, 2007

2 commits


26 Oct, 2007

1 commit


20 Oct, 2007

3 commits


19 Oct, 2007

2 commits

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (51 commits)
    [IPV6]: Fix again the fl6_sock_lookup() fixed locking
    [NETFILTER]: nf_conntrack_tcp: fix connection reopening fix
    [IPV6]: Fix race in ipv6_flowlabel_opt() when inserting two labels
    [IPV6]: Lost locking in fl6_sock_lookup
    [IPV6]: Lost locking when inserting a flowlabel in ipv6_fl_list
    [NETFILTER]: xt_sctp: fix mistake to pass a pointer where array is required
    [NET]: Fix OOPS due to missing check in dev_parse_header().
    [TCP]: Remove lost_retrans zero seqno special cases
    [NET]: fix carrier-on bug?
    [NET]: Fix uninitialised variable in ip_frag_reasm()
    [IPSEC]: Rename mode to outer_mode and add inner_mode
    [IPSEC]: Disallow combinations of RO and AH/ESP/IPCOMP
    [IPSEC]: Use the top IPv4 route's peer instead of the bottom
    [IPSEC]: Store afinfo pointer in xfrm_mode
    [IPSEC]: Add missing BEET checks
    [IPSEC]: Move type and mode map into xfrm_state.c
    [IPSEC]: Fix length check in xfrm_parse_spi
    [IPSEC]: Move ip_summed zapping out of xfrm6_rcv_spi
    [IPSEC]: Get nexthdr from caller in xfrm6_rcv_spi
    [IPSEC]: Move tunnel parsing for IPv4 out of xfrm4_input
    ...

    Linus Torvalds
     
  • Grumble. These numbers should have been in sysctl.h from the beginning if we
    ever expected anyone to use them. Oh well put them there now so we can find
    them and make maintenance easier.

    Signed-off-by: Eric W. Biederman
    Acked-by: Samuel Ortiz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

18 Oct, 2007

1 commit

  • From: Ryan Reading

    Every IrCOMM socket is registered with the discovery subsystem, so we don't
    need to loop over all of them for every discovery event. We just need to
    do it for the registered IrCOMM socket.

    Signed-off-by: Samuel Ortiz
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Ryan Reading
     

11 Oct, 2007

8 commits

  • Just switch to the consolidated code

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • This is nicer than the MAC_FMT stuff.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     
  • It's been a useless no-op for long enough in 2.6 so I figured it's time to
    remove it. The number of people that could object because they're
    maintaining unified 2.4 and 2.6 drivers is probably rather small.

    [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]

    Signed-off-by: Ralf Baechle
    Signed-off-by: Jeff Garzik
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • This patch makes most of the generic device layer network
    namespace safe. This patch makes dev_base_head a
    network namespace variable, and then it picks up
    a few associated variables. The functions:
    dev_getbyhwaddr
    dev_getfirsthwbytype
    dev_get_by_flags
    dev_get_by_name
    __dev_get_by_name
    dev_get_by_index
    __dev_get_by_index
    dev_ioctl
    dev_ethtool
    dev_load
    wireless_process_ioctl

    were modified to take a network namespace argument, and
    deal with it.

    vlan_ioctl_set and brioctl_set were modified so their
    hooks will receive a network namespace argument.

    So basically anthing in the core of the network stack that was
    affected to by the change of dev_base was modified to handle
    multiple network namespaces. The rest of the network stack was
    simply modified to explicitly use &init_net the initial network
    namespace. This can be fixed when those components of the network
    stack are modified to handle multiple network namespaces.

    For now the ifindex generator is left global.

    Fundametally ifindex numbers are per namespace, or else
    we will have corner case problems with migration when
    we get that far.

    At the same time there are assumptions in the network stack
    that the ifindex of a network device won't change. Making
    the ifindex number global seems a good compromise until
    the network stack can cope with ifindex changes when
    you change namespaces, and the like.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • This patch modifies every packet receive function
    registered with dev_add_pack() to drop packets if they
    are not from the initial network namespace.

    This should ensure that the various network stacks do
    not receive packets in a anything but the initial network
    namespace until the code has been converted and is ready
    for them.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • This patch passes in the namespace a new socket should be created in
    and has the socket code do the appropriate reference counting. By
    virtue of this all socket create methods are touched. In addition
    the socket create methods are modified so that they will fail if
    you attempt to create a socket in a non-default network namespace.

    Failing if we attempt to create a socket outside of the default
    network namespace ensures that as we incrementally make the network stack
    network namespace aware we will not export functionality that someone
    has not audited and made certain is network namespace safe.
    Allowing us to partially enable network namespaces before all of the
    exotic protocols are supported.

    Any protocol layers I have missed will fail to compile because I now
    pass an extra parameter into the socket creation code.

    [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • This patch makes /proc/net per network namespace. It modifies the global
    variables proc_net and proc_net_stat to be per network namespace.
    The proc_net file helpers are modified to take a network namespace argument,
    and all of their callers are fixed to pass &init_net for that argument.
    This ensures that all of the /proc/net files are only visible and
    usable in the initial network namespace until the code behind them
    has been updated to be handle multiple network namespaces.

    Making /proc/net per namespace is necessary as at least some files
    in /proc/net depend upon the set of network devices which is per
    network namespace, and even more files in /proc/net have contents
    that are relevant to a single network namespace.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    Samuel Ortiz
     

22 Aug, 2007

2 commits

  • It seems an extraneous trailing ';' has slipped in to the error handling for a
    name registration failure causing the error path to trigger unconditionally.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    Andy Whitcroft
     
  • Easily avoidable compiler warnings bug me.

    Building irmod without CONFIG_SYSCTL currently results in :
    net/irda/irmod.c:132: warning: label 'out_err_2' defined but not used

    But that can easily be avoided by simply moving the label inside
    the existing "#ifdef CONFIG_SYSCTL" one line above it.

    This patch moves the label and buys us one less warning with no
    ill effects.

    Signed-off-by: Jesper Juhl
    Signed-off-by: David S. Miller

    Jesper Juhl
     

22 Jul, 2007

1 commit


19 Jul, 2007

1 commit

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
    [NETFILTER]: xt_connlimit needs to depend on nf_conntrack
    [NETFILTER]: ipt_iprange.h must #include
    [IrDA]: Fix IrDA build failure
    [ATM]: nicstar needs virt_to_bus
    [NET]: move __dev_addr_discard adjacent to dev_addr_discard for readability
    [NET]: merge dev_unicast_discard and dev_mc_discard into one
    [NET]: move dev_mc_discard from dev_mcast.c to dev.c
    [NETLINK]: negative groups in netlink_setsockopt
    [PPPOL2TP]: Reset meta-data in xmit function
    [PPPOL2TP]: Fix use-after-free
    [PKT_SCHED]: Some typo fixes in net/sched/Kconfig
    [XFRM]: Fix crash introduced by struct dst_entry reordering
    [TCP]: remove unused argument to cong_avoid op
    [ATM]: [idt77252] Rename CONFIG_ATM_IDT77252_SEND_IDLE to not resemble a Kconfig variable
    [ATM]: [drivers] ioremap balanced with iounmap
    [ATM]: [lanai] sram_test_word() must be __devinit
    [ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro.
    [ATM]: Eliminate dead config variable CONFIG_BR2684_FAST_TRANS.
    [ATM]: Replacing kmalloc/memset combination with kzalloc.
    [NET]: gen_estimator deadlock fix
    ...

    Linus Torvalds
     

18 Jul, 2007

2 commits

  • Add a kstrndup function, modelled on strndup. Like strndup this
    returns a string copied into its own allocated memory, but it copies
    no more than the specified number of bytes from the source.

    Remove private strndup() from irda code.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Chris Wright
    Cc: Andrew Morton
    Cc: Randy Dunlap
    Cc: YOSHIFUJI Hideaki
    Cc: Akinobu Mita
    Cc: Arnaldo Carvalho de Melo
    Cc: Al Viro
    Cc: Panagiotis Issaris
    Cc: Rene Scharfe

    Jeremy Fitzhardinge
     
  • When having built-in IrDA, we hit the following error:

    `irda_sysctl_unregister' referenced in section `.init.text' of
    net/built-in.o: defined in discarded section `.exit.text' of
    net/built-in.o
    `irda_proc_unregister' referenced in section `.init.text' of
    net/built-in.o: defined in discarded section `.exit.text' of
    net/built-in.o
    `irsock_cleanup' referenced in section `.init.text' of net/built-in.o:
    defined in discarded section `.exit.text' of net/built-in.o
    `irttp_cleanup' referenced in section `.init.text' of net/built-in.o:
    defined in discarded section `.exit.text' of net/built-in.o
    `iriap_cleanup' referenced in section `.init.text' of net/built-in.o:
    defined in discarded section `.exit.text' of net/built-in.o
    `irda_device_cleanup' referenced in section `.init.text' of
    net/built-in.o: defined in discarded section `.exit.text' of
    net/built-in.o
    `irlap_cleanup' referenced in section `.init.text' of net/built-in.o:
    defined in discarded section `.exit.text' of net/built-in.o
    `irlmp_cleanup' referenced in section `.init.text' of net/built-in.o:
    defined in discarded section `.exit.text' of net/built-in.o
    make[1]: *** [.tmp_vmlinux1] Error 1
    make: *** [_all] Error 2

    This is due to the irda_init fix recently added, where we call __exit
    routines from an __init one. It is a build failure that I didn't catch
    because it doesn't show up when building IrDA as a module. My apologies
    for that.
    The following patch fixes that failure and is against your net-2.6
    tree. I hope it can make it to the merge window, and stable@kernel.org
    is CCed on this mail.

    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    Samuel Ortiz
     

11 Jul, 2007

4 commits


09 Jun, 2007

2 commits

  • Jean II was right: you have to re-charge the final timer when
    resending rejected frames. Otherwise it triggers at a wrong time and
    can break the currently running communication. Reproducible under
    rt-preempt.

    Signed-off-by: G. Liakhovetski
    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    G. Liakhovetski
     
  • From: G. Liakhovetski

    We need to switch to NRM _before_ sending the final packet otherwise
    we might hit a race condition where we get the first packet from the
    peer while we're still in LAP_XMIT_P.

    Signed-off-by: Samuel Ortiz
    Signed-off-by: David S. Miller

    G. Liakhovetski
     

10 May, 2007

1 commit


09 May, 2007

1 commit


26 Apr, 2007

4 commits