54-g00ecf'/> <meta name='robots' content='noindex, nofollow'/> <link rel='stylesheet' type='text/css' href='/cgit.css'/> <script type='text/javascript' src='/cgit.js'></script> <link rel='shortcut icon' href='http://distanz.ch/favicon.ico'/> <link rel='alternate' title='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/net/ipv4/ip_output.c?h=master' type='application/atom+xml'/> <link rel='vcs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/> <link rel='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/> </head> <body> <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='a0ee3541483767e82bf26b8269693eec25c01cba'/><input type='hidden' name='showmsg' value='1'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=a0ee3541483767e82bf26b8269693eec25c01cba'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/ipv4/ip_output.c?showmsg=1'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/ipv4/ip_output.c?id=a0ee3541483767e82bf26b8269693eec25c01cba'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/ipv4/ip_output.c?id=a0ee3541483767e82bf26b8269693eec25c01cba'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/ipv4/ip_output.c?id=a0ee3541483767e82bf26b8269693eec25c01cba'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/ipv4/ip_output.c'> <input type='hidden' name='id' value='a0ee3541483767e82bf26b8269693eec25c01cba'/><input type='hidden' name='showmsg' value='1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=a0ee3541483767e82bf26b8269693eec25c01cba&showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?id=a0ee3541483767e82bf26b8269693eec25c01cba&showmsg=1'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ipv4?id=a0ee3541483767e82bf26b8269693eec25c01cba&showmsg=1'>ipv4</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ipv4/ip_output.c?id=a0ee3541483767e82bf26b8269693eec25c01cba&showmsg=1'>ip_output.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/ipv4/ip_output.c?id=a0ee3541483767e82bf26b8269693eec25c01cba'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> <tr class='logheader'><td><span title='2017-02-07 13:07:47 -0500'>2017-02-07</span></td><td class='logsubject'><a href='/cgit.cgi/linux/net-next.git/commit/net/ipv4/ip_output.c?id=0dec879f636f11b0ffda1cb5fd96a1754c59ead3'>net: use dst_confirm_neigh for UDP, RAW, ICMP, L2TP</a></td><td>Julian Anastasov</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+6</span></td></tr> <tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'> When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. The datagram protocols can use MSG_CONFIRM to confirm the neighbour. When used with MSG_PROBE we do not reach the code where neighbour is confirmed, so we have to do the same slow lookup by using the dst_confirm_neigh() helper. When MSG_PROBE is not used, ip_append_data/ip6_append_data will set the skb flag dst_pending_confirm. Reported-by: YueHaibing <yuehaibing@huawei.com> Fixes: 5110effee8fd ("net: Do delayed neigh confirmation.") Fixes: f2bb4bedf35d ("ipv4: Cache output routes in fib_info nexthops.") Signed-off-by: Julian Anastasov <ja@ssi.bg> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> </td></tr> <tr class='logheader'><td><span title='2017-02-07 13:07:46 -0500'>2017-02-07</span></td><td class='logsubject'><a href='/cgit.cgi/linux/net-next.git/commit/net/ipv4/ip_output.c?id=4ff0620354f2b39b9fe2a91c22c4de9d1fba0c8e'>net: add dst_pending_confirm flag to skbuff</a></td><td>Julian Anastasov</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+4</span></td></tr> <tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'> Add new skbuff flag to allow protocols to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. Add sock_confirm_neigh() helper to confirm the neighbour and use it for IPv4, IPv6 and VRF before dst_neigh_output. Signed-off-by: Julian Anastasov <ja@ssi.bg> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> </td></tr>