Re: [PATCH net] bpf: fix bpf_skb_in_cgroup helper naming

2016-08-13 Thread Martin KaFai Lau
On Fri, Aug 12, 2016 at 10:17:17PM +0200, Daniel Borkmann wrote: > While hashing out BPF's current_task_under_cgroup helper bits, it came > to discussion that the skb_in_cgroup helper name was suboptimally chosen. > > Tejun says: > > So, I think in_cgroup should mean that the object is in that >

Re: [PATCH v2 1/1] VSOCK: remove more space available check filling TXvq

2016-08-13 Thread Gerard Garcia
On 08/13/2016 02:31 AM, David Miller wrote: From: ggar...@abra.uab.cat Date: Wed, 10 Aug 2016 17:24:34 +0200 From: Gerard Garcia Remove unnecessary use of enable/disable callback notifications and the incorrect more space available check. The virtio_transport_tx_work

Re: [PATCH net] sctp: fix a success return may hide an error

2016-08-13 Thread Xin Long
> > This style of error handling is dangerous. The first error can be > lost. > > For example, if sctp_outq_flush_rtx() earlier in this function returns > an error, it will be lost if any invocation of the function > sctp_packet_transmit() at the end function signals an error. > > I think you

[PATCH v2 2/3] VSOCK: Add vsockmon device

2016-08-13 Thread ggarcia
From: Gerard Garcia Add vsockmon virtual network device that receives packets from the vsock transports and exposes them to user space. Based on the nlmon device. Signed-off-by: Gerard Garcia --- drivers/net/Kconfig | 8 ++

[PATCH v2 1/3] VSOCK: Add vsockmon tap functions

2016-08-13 Thread ggarcia
From: Gerard Garcia Add tap functions that can be used by the vsock transports to deliver packets to vsockmon virtual network devices. Signed-off-by: Gerard Garcia --- include/net/af_vsock.h | 13 + include/uapi/linux/if_arp.h | 1 +

[PATCH v2 3/3] VSOCK: Add virtio vsock vsockmon hooks

2016-08-13 Thread ggarcia
From: Gerard Garcia Add hooks to the virtio transport host driver to deliver a copy of the received and sent messages to all vsockmon virtual network devices. Signed-off-by: Gerard Garcia --- drivers/vhost/vsock.c | 72

[PATCH v2 0/3] VSOCK: vsockmon virtual device to monitor AF_VSOCK sockets.

2016-08-13 Thread ggarcia
From: Gerard Garcia This patch applies over the mst vhost git repository: http://git.kernel.org/cgit/linux/kernel/git/mst/vhost.git v2: * Clone skb before transmitting them to vsockmon. * Use consume_skb() instead of kfree_skb(). * Pass skb lifetime responsibility to

[PATCH] net: macb: add phy-handle support for the macb

2016-08-13 Thread Kedareswara rao Appana
This patch adds support for the 'phy-handle' binding which allows for a system to specifically select a phy which can be attached via any MDIO bus available in the system. Signed-off-by: Kedareswara rao Appana --- Documentation/devicetree/bindings/net/macb.txt | 3 +++

Re: [Patch net 0/5] net_sched: tc action fixes and updates

2016-08-13 Thread Jamal Hadi Salim
On 16-08-11 08:08 PM, Cong Wang wrote: On Thu, Aug 11, 2016 at 9:20 AM, Jamal Hadi Salim wrote: On 16-08-10 04:06 PM, Cong Wang wrote: On Wed, Aug 10, 2016 at 7:34 AM, Jamal Hadi Salim wrote: On 16-08-08 04:46 PM, Cong Wang wrote: tcf_exts_exec()

Re: [PATCH v2 2/3] VSOCK: Add vsockmon device

2016-08-13 Thread zhuyj
+#define DEFAULT_MTU (VIRTIO_VSOCK_MAX_PKT_BUF_SIZE + sizeof(struct af_vsockmon_hdr)); It is better. On Sat, Aug 13, 2016 at 6:21 PM, wrote: > From: Gerard Garcia > > Add vsockmon virtual network device that receives packets from the vsock >

[PATCH 1/2] net: ethernet: mediatek: fixed that initializing u64_stats_sync is missing

2016-08-13 Thread Sean Wang
To fix runtime warning with lockdep is enabled due that u64_stats_sync is not initialized well, so add it. Signed-off-by: Sean Wang --- drivers/net/ethernet/mediatek/mtk_eth_soc.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/2] net: ethernet: mediatek: add the missing of_node_put() after node is used done

2016-08-13 Thread Sean Wang
This patch adds the missing of_node_put() after finishing the usage of of_parse_phandle() or of_node_get() used by fixed_phy. Signed-off-by: Sean Wang --- drivers/net/ethernet/mediatek/mtk_eth_soc.c |2 ++ 1 file changed, 2 insertions(+) diff --git

КЛИЕHТСКИЕ БA3Ьl МAЙЛ:oqissavip-2...@speed.1s.fr СКAЙП: prodawez389 Для 6ыстpой мAссовой пpодAжи ВAшиx товApов и услуг! Подpо6ности узнAйтe сeйчAс!

2016-08-13 Thread netdev@vger.kernel.org
Собeрем gля Ваc пo интepнет 6азy дaнныx nотенцuальныx kлиeнmoв для Baшеro Бизнeса! B 6aзе 6уqут вce kонтаkmныe qaнные необхoдuмые gля мaсcовой nрoqажu Вашuх moвaров u услуг. Пo Baшему зaпpoсу nришлем пpимeр и подро6нyю uнфoрмацию. Если uнmeрeснo зanросиmе noqробноcmu сейчас МAЙЛ:

[PATCH net-next 0/2] libbpf: minor fix and API update

2016-08-13 Thread Eric Leblond
Hello, Here's a small patchset on libbpf fixing two issues I've encountered when adding some eBPF related features to Suricata. Patchset statistics: tools/lib/bpf/libbpf.c | 16 +++- tools/lib/bpf/libbpf.h | 4 +++- 2 files changed, 10 insertions(+), 10 deletions(-) BR, -- Eric

[PATCH net-next 2/2] tools lib bpf: export function to set type

2016-08-13 Thread Eric Leblond
Current API was not allowing the user to set a type like socket filter. To avoid a setter function for each type, the patch simply exports a set function that takes the type in parameter. Signed-off-by: Eric Leblond --- tools/lib/bpf/libbpf.c | 15 ++-

[PATCH net-next 1/2] tools lib bpf: suppress useless include

2016-08-13 Thread Eric Leblond
The include of err.h is not explicitely needed in exported functions and it was causing include conflict with some existing code due to redefining some macros. Signed-off-by: Eric Leblond --- tools/lib/bpf/libbpf.c | 1 + tools/lib/bpf/libbpf.h | 1 - 2 files changed, 1

Re: [Patch net v3 5/5] net_sched: convert tcf_exts from list to pointer array

2016-08-13 Thread Jamal Hadi Salim
Just minor comment below: On 16-08-11 08:41 PM, Cong Wang wrote: +static inline void +tcf_exts_to_list(const struct tcf_exts *exts, struct list_head *actions) +{ to: static inline void tcf_exts_to_list(const struct tcf_exts *exts, struct list_head

Re: [Intel-wired-lan] [net-next] igb: add function to set I210 transmit mode

2016-08-13 Thread Alexander Duyck
On Tue, Aug 9, 2016 at 11:48 PM, Gangfeng wrote: > From: Gangfeng Huang > > I210 supports two transmit modes, legacy and Qav. The transmit mode is > configured in TQAVCTRL.QavMode register. Before this patch igb driver > only support legacy mode.

Re: [Intel-wired-lan] [net-next] igb: add function to set I210 transmit mode

2016-08-13 Thread Richard Cochran
On Sat, Aug 13, 2016 at 08:27:38AM -0700, Alexander Duyck wrote: > I really don' think this patch is going to work. If you are going to > implement something like this and have a hope to get it accepted into > the Linux kernel you need to come up with a solution that will work > fore more than