[ovs-git] [openvswitch/ovs] 039fb3: datapath:backport: openvswitch: Add packet len inf...

GitHub noreply at github.com
Fri Jun 24 23:15:03 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 039fb36c9623a278231ee803e5a39e5c8f69ac01
      https://github.com/openvswitch/ovs/commit/039fb36c9623a278231ee803e5a39e5c8f69ac01
  Author: William Tu <u9012063 at gmail.com>
  Date:   2016-06-24 (Fri, 24 Jun 2016)

  Changed paths:
    M datapath/datapath.c
    M datapath/linux/compat/include/linux/openvswitch.h

  Log Message:
  -----------
  datapath:backport: openvswitch: Add packet len info to upcall.

Upstream commit:
    commit b95e5928fcc76d156352570858abdea7b2628efd
    Author: William Tu <u9012063 at gmail.com>
    Date:   Mon Jun 20 07:26:17 2016 -0700

    The commit f2a4d086ed4c ("openvswitch: Add packet truncation support.")
    introduces packet truncation before sending to userspace upcall receiver.
    This patch passes up the skb->len before truncation so that the upcall
    receiver knows the original packet size. Potentially this will be used
    by sFlow, where OVS translates sFlow config header=N to a sample action,
    truncating packet to N byte in kernel datapath. Thus, only N bytes instead
    of full-packet size is copied from kernel to userspace, saving the
    kernel-to-userspace bandwidth.

    Signed-off-by: William Tu <u9012063 at gmail.com>
    Cc: Pravin Shelar <pshelar at nicira.com>
    Acked-by: Pravin B Shelar <pshelar at ovn.org>
    Signed-off-by: David S. Miller <davem at davemloft.net>

Tested-at: https://travis-ci.org/williamtu/ovs-travis/builds/140135299
Signed-off-by: William Tu <u9012063 at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>




More information about the git mailing list