Skip to content

Commit f96e871

Browse files
TaeheeYoodavem330
authored andcommitted
hsr: remove WARN_ONCE() in hsr_fill_frame_info()
When VLAN frame is being sent, hsr calls WARN_ONCE() because hsr doesn't support VLAN. But using WARN_ONCE() is overdoing. Using netdev_warn_once() is enough. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7596ac9 commit f96e871

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/hsr/hsr_forward.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static int hsr_fill_frame_info(struct hsr_frame_info *frame,
321321
if (ethhdr->h_proto == htons(ETH_P_8021Q)) {
322322
frame->is_vlan = true;
323323
/* FIXME: */
324-
WARN_ONCE(1, "HSR: VLAN not yet supported");
324+
netdev_warn_once(skb->dev, "VLAN not yet supported");
325325
}
326326
if (ethhdr->h_proto == htons(ETH_P_PRP) ||
327327
ethhdr->h_proto == htons(ETH_P_HSR)) {

0 commit comments

Comments
 (0)