06 Jul, 2017

1 commit

  • Pull networking updates from David Miller:
    "Reasonably busy this cycle, but perhaps not as busy as in the 4.12
    merge window:

    1) Several optimizations for UDP processing under high load from
    Paolo Abeni.

    2) Support pacing internally in TCP when using the sch_fq packet
    scheduler for this is not practical. From Eric Dumazet.

    3) Support mutliple filter chains per qdisc, from Jiri Pirko.

    4) Move to 1ms TCP timestamp clock, from Eric Dumazet.

    5) Add batch dequeueing to vhost_net, from Jason Wang.

    6) Flesh out more completely SCTP checksum offload support, from
    Davide Caratti.

    7) More plumbing of extended netlink ACKs, from David Ahern, Pablo
    Neira Ayuso, and Matthias Schiffer.

    8) Add devlink support to nfp driver, from Simon Horman.

    9) Add RTM_F_FIB_MATCH flag to RTM_GETROUTE queries, from Roopa
    Prabhu.

    10) Add stack depth tracking to BPF verifier and use this information
    in the various eBPF JITs. From Alexei Starovoitov.

    11) Support XDP on qed device VFs, from Yuval Mintz.

    12) Introduce BPF PROG ID for better introspection of installed BPF
    programs. From Martin KaFai Lau.

    13) Add bpf_set_hash helper for TC bpf programs, from Daniel Borkmann.

    14) For loads, allow narrower accesses in bpf verifier checking, from
    Yonghong Song.

    15) Support MIPS in the BPF selftests and samples infrastructure, the
    MIPS eBPF JIT will be merged in via the MIPS GIT tree. From David
    Daney.

    16) Support kernel based TLS, from Dave Watson and others.

    17) Remove completely DST garbage collection, from Wei Wang.

    18) Allow installing TCP MD5 rules using prefixes, from Ivan
    Delalande.

    19) Add XDP support to Intel i40e driver, from Björn Töpel

    20) Add support for TC flower offload in nfp driver, from Simon
    Horman, Pieter Jansen van Vuuren, Benjamin LaHaise, Jakub
    Kicinski, and Bert van Leeuwen.

    21) IPSEC offloading support in mlx5, from Ilan Tayari.

    22) Add HW PTP support to macb driver, from Rafal Ozieblo.

    23) Networking refcount_t conversions, From Elena Reshetova.

    24) Add sock_ops support to BPF, from Lawrence Brako. This is useful
    for tuning the TCP sockopt settings of a group of applications,
    currently via CGROUPs"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1899 commits)
    net: phy: dp83867: add workaround for incorrect RX_CTRL pin strap
    dt-bindings: phy: dp83867: provide a workaround for incorrect RX_CTRL pin strap
    cxgb4: Support for get_ts_info ethtool method
    cxgb4: Add PTP Hardware Clock (PHC) support
    cxgb4: time stamping interface for PTP
    nfp: default to chained metadata prepend format
    nfp: remove legacy MAC address lookup
    nfp: improve order of interfaces in breakout mode
    net: macb: remove extraneous return when MACB_EXT_DESC is defined
    bpf: add missing break in for the TCP_BPF_SNDCWND_CLAMP case
    bpf: fix return in load_bpf_file
    mpls: fix rtm policy in mpls_getroute
    net, ax25: convert ax25_cb.refcount from atomic_t to refcount_t
    net, ax25: convert ax25_route.refcount from atomic_t to refcount_t
    net, ax25: convert ax25_uid_assoc.refcount from atomic_t to refcount_t
    net, sctp: convert sctp_ep_common.refcnt from atomic_t to refcount_t
    net, sctp: convert sctp_transport.refcnt from atomic_t to refcount_t
    net, sctp: convert sctp_chunk.refcnt from atomic_t to refcount_t
    net, sctp: convert sctp_datamsg.refcnt from atomic_t to refcount_t
    net, sctp: convert sctp_auth_bytes.refcnt from atomic_t to refcount_t
    ...

    Linus Torvalds
     

03 Jun, 2017

2 commits


18 May, 2017

2 commits

  • Paths can be up to PATH_MAX long and PATH_MAX is usually greater than 256.
    While on it, simplify path reconstruction to a simple snprintf(), define
    and reuse KVP_NET_DIR.

    Suggested-by: Tomas Hozza
    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • If a FREEZE operation takes too long, the driver may time out and move on
    to another operation. The daemon is unaware of this and attempts to
    notify the driver that the FREEZE succeeded. This results in an error from
    the driver and the daemon leaves the filesystem in frozen state.

    Fix this by thawing the filesystem and continuing.

    Signed-off-by: Michael Gissing
    Signed-off-by: Alex Ng
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Alex Ng
     

16 May, 2017

1 commit


07 Mar, 2017

1 commit


14 Dec, 2016

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here's the big char/misc driver patches for 4.10-rc1. Lots of tiny
    changes over lots of "minor" driver subsystems, the largest being some
    new FPGA drivers. Other than that, a few other new drivers, but no new
    driver subsystems added for this kernel cycle, a nice change.

    All of these have been in linux-next with no reported issues"

    * tag 'char-misc-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (107 commits)
    uio-hv-generic: store physical addresses instead of virtual
    Tools: hv: kvp: configurable external scripts path
    uio-hv-generic: new userspace i/o driver for VMBus
    vmbus: add support for dynamic device id's
    hv: change clockevents unbind tactics
    hv: acquire vmbus_connection.channel_mutex in vmbus_free_channels()
    hyperv: Fix spelling of HV_UNKOWN
    mei: bus: enable non-blocking RX
    mei: fix the back to back interrupt handling
    mei: synchronize irq before initiating a reset.
    VME: Remove shutdown entry from vme_driver
    auxdisplay: ht16k33: select framebuffer helper modules
    MAINTAINERS: add git url for fpga
    fpga: Clarify how write_init works streaming modes
    fpga zynq: Fix incorrect ISR state on bootup
    fpga zynq: Remove priv->dev
    fpga zynq: Add missing \n to messages
    fpga: Add COMPILE_TEST to all drivers
    uio: pruss: add clk_disable()
    char/pcmcia: add some error checking in scr24x_read()
    ...

    Linus Torvalds
     

06 Dec, 2016

2 commits

  • We found network manager is necessary on RHEL to make the synthetic
    NIC, VF NIC bonding operations handled automatically. So, enabling
    network manager here.

    Signed-off-by: Haiyang Zhang
    Reviewed-by: K. Y. Srinivasan
    Signed-off-by: David S. Miller

    Haiyang Zhang
     
  • error when running hypervkvpd:
    $ sudo ./hv_kvp_daemon -n

    sh: hv_get_dns_info: command not found
    sh: hv_get_dhcp_info: command not found
    sh: hv_get_dns_info: command not found
    sh: hv_get_dhcp_info: command not found

    The external scripts are not installed in system path,
    adding a configurable macro.

    Signed-off-by: Alex Fluter
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Alex Fluter
     

07 Nov, 2016

3 commits


02 Sep, 2016

1 commit

  • Hyper-V host will send a VSS_OP_HOT_BACKUP request to check if guest is
    ready for a live backup/snapshot. The driver should respond to the check
    only if the daemon is running and listening to requests. This allows the
    host to fallback to standard snapshots in case the VSS daemon is not
    running.

    Signed-off-by: Alex Ng
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Alex Ng
     

31 Aug, 2016

1 commit

  • KVP daemon does fork()/exec() (with popen()) so we need to close our fds
    to avoid sharing them with child processes. The immediate implication of
    not doing so I see is SELinux complaining about 'ip' trying to access
    '/dev/vmbus/hv_kvp'.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     

13 Jul, 2016

1 commit

  • This script helps to create bonding network devices based on synthetic NIC
    (the virtual network adapter usually provided by Hyper-V) and the matching
    VF NIC (SRIOV virtual function). So the synthetic NIC and VF NIC can
    function as one network device, and fail over to the synthetic NIC if VF is
    down.

    Mayjor distros (RHEL, Ubuntu, SLES) supported by Hyper-V are supported by
    this script.

    Signed-off-by: Haiyang Zhang
    Reviewed-by: K. Y. Srinivasan
    Signed-off-by: David S. Miller

    Haiyang Zhang
     

02 May, 2016

1 commit


08 Feb, 2016

1 commit


15 Dec, 2015

3 commits


06 Aug, 2015

1 commit


25 May, 2015

4 commits


25 Mar, 2015

2 commits


26 Jan, 2015

4 commits

  • We don't need to add additional '/' to smsg->path_name as snprintf("%s/%s")
    does the right thing. Without the patch we get doubled '//' in the log message.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • This patch addresses two types of compiler warnings:
    ... warning: unused variable .fd. [-Wunused-variable]
    and
    ... warning: format .%s. expects argument of type .char *., but argument 5 has type .__u16 *. [-Wformat=]

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • This patch addresses two types of compiler warnings:
    ... warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    and
    ... warning: pointer targets in passing argument N of .kvp_.... differ in signedness [-Wpointer-sign]

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • fwrite() does not actually return the number of bytes written and
    this value is being ignored anyway and ferror() is being called to
    check for an error. As we assign to this variable and never use it
    we get the following compile-time warning:
    hv_kvp_daemon.c:149:9: warning: variable .bytes_written. set but not used [-Wunused-but-set-variable]
    Remove bytes_written completely.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     

12 Jan, 2015

2 commits


27 Nov, 2014

3 commits

  • Under high memory pressure and very high KVP R/W test pressure, the netlink
    recvfrom() may transiently return ENOBUFS to the daemon -- we found this
    during a 2-week stress test.

    We'd better not terminate the daemon on the failure, because a typical KVP
    user will re-try the R/W and hopefully it will succeed next time.

    We can also ignore the errors on sending.

    Cc: K. Y. Srinivasan
    Signed-off-by: Dexuan Cui
    Reviewed-by: Vitaly Kuznetsov
    Signed-off-by: Greg Kroah-Hartman

    Dexuan Cui
     
  • Instead of making a list of exceptions for readonly filesystems
    in addition to iso9660 we already have it is better to skip freeze
    operation for all readonly-mounted filesystems.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Acked-by: Dexuan Cui
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • When ioctl(fd, FIFREEZE, 0) results in an error we cannot report it
    to syslog instantly since that can cause write to a frozen disk.
    However, the name of the filesystem which caused the error and errno
    are valuable and we would like to get a nice human-readable message
    in the log. Save errno before calling vss_operate(VSS_OP_THAW) and
    report the error right after.

    Unfortunately, FITHAW errors cannot be reported the same way as we
    need to finish thawing all filesystems before calling syslog().

    We should also avoid calling endmntent() for the second time in
    case we encountered an error during freezing of '/' as it usually
    results in SEGSEGV.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Acked-by: Dexuan Cui
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     

08 Nov, 2014

2 commits

  • All tools/hv daemons do mandatory daemon() on startup. However, no pidfile
    is created, this make it difficult for an init system to track such daemons.
    Modern linux distros use systemd as their init system. It can handle the
    daemonizing by itself, however, it requires a daemon to stay in foreground
    for that. Some distros already carry distro-specific patch for hv tools
    which switches off daemon().

    Introduce -n/--no-daemon option for all 3 daemons in hv/tools. Parse options
    with getopt() to make this part easily expandable.

    Signed-off-by: Vitaly Kuznetsov
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     
  • If a partition appears mounted more than once in /proc/mounts, vss_do_freeze()
    succeeds only for the first time and gets EBUSY (on freeze) or EINVAL (on
    thaw) for the second time. The patch ignores these to make the backup feature
    work.

    Also improved the error handling in case a freeze operation fails.

    Signed-off-by: Dexuan Cui
    Reviewed-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Dexuan Cui
     

10 Jul, 2014

1 commit