WARNING: line length of 88 exceeds 80 columns #547: FILE: include/net/xdp.h:598: +xdp_entry_fetch_or_create(struct net_device *dev, enum bpf_xdp_mode mode, bool *created) WARNING: line length of 82 exceeds 80 columns #696: FILE: net/core/dev.c:5158: + act = netif_receive_generic_xdp(pskb, &xdp, xdp_array, &xdp_prog); WARNING: line length of 99 exceeds 80 columns #785: FILE: net/core/dev.c:9392: +static bool dev_xdp_has_prog(struct net_device *dev, enum bpf_xdp_mode mode, struct bpf_prog *prog) WARNING: line length of 96 exceeds 80 columns #789: FILE: net/core/dev.c:9396: + /* Special case for NULL program, in which case we check if no programs are attached. */ WARNING: line length of 82 exceeds 80 columns #796: FILE: net/core/dev.c:9403: +static int dev_xdp_prog_mode_count(struct net_device *dev, enum bpf_xdp_mode mode) WARNING: line length of 82 exceeds 80 columns #835: FILE: net/core/dev.c:9452: +static bool dev_xdp_supports_mprog(struct net_device *dev, enum bpf_xdp_mode mode, WARNING: line length of 99 exceeds 80 columns #879: FILE: net/core/dev.c:9490: + NL_SET_ERR_MSG(extack, "Underlying driver does not support multiple XDP programs"); WARNING: line length of 87 exceeds 80 columns #955: FILE: net/core/dev.c:9559: + WARN_ON(dev_xdp_install(dev, mode, bpf_op, NULL, 0, NULL, NULL, NULL)); WARNING: line length of 88 exceeds 80 columns #983: FILE: net/core/dev.c:9577: +static int verify_dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack, WARNING: line length of 86 exceeds 80 columns #984: FILE: net/core/dev.c:9578: + struct bpf_xdp_link *link, struct bpf_prog *new_prog, WARNING: line length of 89 exceeds 80 columns #1004: FILE: net/core/dev.c:9615: + NL_SET_ERR_MSG(extack, "Netlink does not support multiple XDP programs"); WARNING: line length of 86 exceeds 80 columns #1020: FILE: net/core/dev.c:9633: + if (link && dev_xdp_has_any_prog(dev, mode) && !dev_xdp_has_link(dev, mode)) { WARNING: line length of 84 exceeds 80 columns #1025: FILE: net/core/dev.c:9637: + if ((flags & XDP_FLAGS_REPLACE) && !dev_xdp_has_prog(dev, mode, old_prog)) { WARNING: line length of 95 exceeds 80 columns #1034: FILE: net/core/dev.c:9651: + if ((flags & XDP_FLAGS_UPDATE_IF_NOEXIST) && dev_xdp_has_any_prog(dev, mode)) { WARNING: line length of 89 exceeds 80 columns #1060: FILE: net/core/dev.c:9680: +static int dev_xdp_attach_netlink(struct net_device *dev, struct netlink_ext_ack *extack, WARNING: line length of 87 exceeds 80 columns #1061: FILE: net/core/dev.c:9681: + struct bpf_prog *new_prog, struct bpf_prog *old_prog, WARNING: line length of 82 exceeds 80 columns #1073: FILE: net/core/dev.c:9693: + err = verify_dev_xdp_attach(dev, extack, NULL, new_prog, old_prog, flags); WARNING: line length of 96 exceeds 80 columns #1080: FILE: net/core/dev.c:9700: + NL_SET_ERR_MSG(extack, "Underlying driver does not support XDP in native mode"); WARNING: line length of 94 exceeds 80 columns #1090: FILE: net/core/dev.c:9708: + /* Netlink does not support mprog and this is validated in verify_dev_xdp_attach(). */ WARNING: line length of 94 exceeds 80 columns #1093: FILE: net/core/dev.c:9711: + /* If no new program to attach or current program to detach, there's nothing to do. */ WARNING: line length of 83 exceeds 80 columns #1110: FILE: net/core/dev.c:9725: + err = bpf_mprog_detach(entry, &entry_new, cur_prog, NULL, 0, 0, 0); WARNING: line length of 92 exceeds 80 columns #1118: FILE: net/core/dev.c:9732: + err = dev_xdp_install(dev, mode, bpf_op, extack, flags, entry_new, new_prog, WARNING: line length of 96 exceeds 80 columns #1165: FILE: net/core/dev.c:9776: + NL_SET_ERR_MSG(extack, "Underlying driver does not support XDP in native mode"); WARNING: line length of 85 exceeds 80 columns #1173: FILE: net/core/dev.c:9784: + err = bpf_mprog_attach(entry, &entry_new, prog, &link->link, NULL, bpf_flags, WARNING: line length of 90 exceeds 80 columns #1179: FILE: net/core/dev.c:9790: + /* Attachment via link always installs a new program so always call the driver. */ WARNING: line length of 87 exceeds 80 columns #1180: FILE: net/core/dev.c:9791: + err = dev_xdp_install(dev, mode, bpf_op, extack, flags, entry_new, prog, NULL); WARNING: line length of 90 exceeds 80 columns #1226: FILE: net/core/dev.c:9830: + WARN_ON(dev_xdp_install(dev, mode, bpf_op, NULL, 0, entry_new, NULL, link->prog)); total: 0 errors, 27 warnings, 0 checks, 1231 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit b6acfad45c7a ("bpf: Add multi-prog support for XDP BPF programs") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 27 warnings, 0 checks, 1231 lines checked