|
@@ -442,7 +442,9 @@ __build_packet_message(struct nfnl_log_net *log,
|
|
if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV,
|
|
if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV,
|
|
htonl(indev->ifindex)) ||
|
|
htonl(indev->ifindex)) ||
|
|
/* this is the bridge group "brX" */
|
|
/* this is the bridge group "brX" */
|
|
- /* rcu_read_lock()ed by nf_hook_slow or nf_log_packet */
|
|
|
|
|
|
+ /* rcu_read_lock()ed by nf_hook_thresh or
|
|
|
|
+ * nf_log_packet.
|
|
|
|
+ */
|
|
nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV,
|
|
nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV,
|
|
htonl(br_port_get_rcu(indev)->br->dev->ifindex)))
|
|
htonl(br_port_get_rcu(indev)->br->dev->ifindex)))
|
|
goto nla_put_failure;
|
|
goto nla_put_failure;
|
|
@@ -477,7 +479,9 @@ __build_packet_message(struct nfnl_log_net *log,
|
|
if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV,
|
|
if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV,
|
|
htonl(outdev->ifindex)) ||
|
|
htonl(outdev->ifindex)) ||
|
|
/* this is the bridge group "brX" */
|
|
/* this is the bridge group "brX" */
|
|
- /* rcu_read_lock()ed by nf_hook_slow or nf_log_packet */
|
|
|
|
|
|
+ /* rcu_read_lock()ed by nf_hook_thresh or
|
|
|
|
+ * nf_log_packet.
|
|
|
|
+ */
|
|
nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV,
|
|
nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV,
|
|
htonl(br_port_get_rcu(outdev)->br->dev->ifindex)))
|
|
htonl(br_port_get_rcu(outdev)->br->dev->ifindex)))
|
|
goto nla_put_failure;
|
|
goto nla_put_failure;
|