aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-10-19 14:03:06 -0400
committerDavid S. Miller <davem@davemloft.net>2018-10-19 14:03:06 -0400
commit2e2d6f0342be7f73a34526077fa96f42f0e8c661 (patch)
tree29f3740825a70aa606e03cf3a048d9a3a751529c /kernel/bpf
parent9333f207920336575cba4ed60603c1cdb79ace4f (diff)
parent48995423143a097527802e28d7add20e5a27677a (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
net/sched/cls_api.c has overlapping changes to a call to nlmsg_parse(), one (from 'net') added rtm_tca_policy instead of NULL to the 5th argument, and another (from 'net-next') added cb->extack instead of NULL to the 6th argument. net/ipv4/ipmr_base.c is a case of a bug fix in 'net' being done to code which moved (to mr_table_dump)) in 'net-next'. Thanks to David Ahern for the heads up. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf')
-rw-r--r--kernel/bpf/xskmap.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/bpf/xskmap.c b/kernel/bpf/xskmap.c
index ef0b7b6ef8a5..686d244e798d 100644
--- a/kernel/bpf/xskmap.c
+++ b/kernel/bpf/xskmap.c
@@ -192,11 +192,8 @@ static int xsk_map_update_elem(struct bpf_map *map, void *key, void *value,
192 sock_hold(sock->sk); 192 sock_hold(sock->sk);
193 193
194 old_xs = xchg(&m->xsk_map[i], xs); 194 old_xs = xchg(&m->xsk_map[i], xs);
195 if (old_xs) { 195 if (old_xs)
196 /* Make sure we've flushed everything. */
197 synchronize_net();
198 sock_put((struct sock *)old_xs); 196 sock_put((struct sock *)old_xs);
199 }
200 197
201 sockfd_put(sock); 198 sockfd_put(sock);
202 return 0; 199 return 0;
@@ -212,11 +209,8 @@ static int xsk_map_delete_elem(struct bpf_map *map, void *key)
212 return -EINVAL; 209 return -EINVAL;
213 210
214 old_xs = xchg(&m->xsk_map[k], NULL); 211 old_xs = xchg(&m->xsk_map[k], NULL);
215 if (old_xs) { 212 if (old_xs)
216 /* Make sure we've flushed everything. */
217 synchronize_net();
218 sock_put((struct sock *)old_xs); 213 sock_put((struct sock *)old_xs);
219 }
220 214
221 return 0; 215 return 0;
222} 216}