{"id":816372,"url":"http://patchwork.ozlabs.org/api/covers/816372/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/cover/cover.1505926196.git.pabeni@redhat.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<cover.1505926196.git.pabeni@redhat.com>","list_archive_url":null,"date":"2017-09-20T16:54:00","name":"[net-next,0/5] net: introduce noref sk","submitter":{"id":67312,"url":"http://patchwork.ozlabs.org/api/people/67312/?format=json","name":"Paolo Abeni","email":"pabeni@redhat.com"},"mbox":"http://patchwork.ozlabs.org/project/netdev/cover/cover.1505926196.git.pabeni@redhat.com/mbox/","series":[{"id":4180,"url":"http://patchwork.ozlabs.org/api/series/4180/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=4180","date":"2017-09-20T16:54:00","name":"net: introduce noref sk","version":1,"mbox":"http://patchwork.ozlabs.org/series/4180/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/816372/comments/","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ext-mx07.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx07.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=pabeni@redhat.com"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xy5Xj2QdJz9sP1\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 02:58:13 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751365AbdITQ6K (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 20 Sep 2017 12:58:10 -0400","from mx1.redhat.com ([209.132.183.28]:52526 \"EHLO mx1.redhat.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1750938AbdITQ6J (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tWed, 20 Sep 2017 12:58:09 -0400","from smtp.corp.redhat.com\n\t(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 39B91C0578F5;\n\tWed, 20 Sep 2017 16:58:09 +0000 (UTC)","from localhost.mxp.redhat.com (unknown [10.32.181.195])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id D18F360241;\n\tWed, 20 Sep 2017 16:58:07 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 39B91C0578F5","From":"Paolo Abeni <pabeni@redhat.com>","To":"netdev@vger.kernel.org","Cc":"\"David S. Miller\" <davem@davemloft.net>,\n\tPablo Neira Ayuso <pablo@netfilter.org>, Florian Westphal <fw@strlen.de>,\n\tEric Dumazet <edumazet@google.com>,\n\tHannes Frederic Sowa <hannes@stressinduktion.org>","Subject":"[PATCH net-next 0/5] net: introduce noref sk","Date":"Wed, 20 Sep 2017 18:54:00 +0200","Message-Id":"<cover.1505926196.git.pabeni@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.12","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.31]);\n\tWed, 20 Sep 2017 16:58:09 +0000 (UTC)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"This series introduce the infrastructure to store inside the skb a socket\npointer without carrying a refcount to the socket.\n\nSuch infrastructure is then used in the network receive path - and\nspecifically the early demux operation.\n\nThis allows the UDP early demux to perform a full lookup for UDP sockets,\nwith many benefits:\n\n- the UDP early demux code is now much simpler\n- the early demux does not hit any performance penalties in case of UDP hash\n  table collision - previously the early demux performed a partial, unsuccesful,\n  lookup\n- early demux is now operational also for unconnected sockets.\n\nThis infrastrcture will be used in follow-up series to allow dst caching for\nunconnected UDP sockets, and than to extend the same features to TCP listening\nsockets.\n\nPaolo Abeni (5):\n  net: add support for noref skb->sk\n  net: allow early demux to fetch noref socket\n  udp: do not touch socket refcount in early demux\n  net: add simple socket-like dst cache helpers\n  udp: perform full socket lookup in early demux\n\n include/linux/skbuff.h           | 30 +++++++++++++++\n include/linux/udp.h              |  2 +\n include/net/dst.h                | 12 ++++++\n net/core/dst.c                   | 16 ++++++++\n net/core/sock.c                  |  6 +++\n net/ipv4/ip_input.c              | 12 ++++++\n net/ipv4/ipmr.c                  | 18 +++++++--\n net/ipv4/netfilter/nf_dup_ipv4.c |  3 ++\n net/ipv4/udp.c                   | 80 ++++++++++++++++------------------------\n net/ipv6/ip6_input.c             |  7 +++-\n net/ipv6/netfilter/nf_dup_ipv6.c |  3 ++\n net/ipv6/udp.c                   | 67 ++++++++++-----------------------\n net/netfilter/nf_queue.c         |  3 ++\n 13 files changed, 159 insertions(+), 100 deletions(-)"}