]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Merge remote-tracking branch 'net-next/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 Jun 2021 01:46:12 +0000 (11:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 Jun 2021 01:46:12 +0000 (11:46 +1000)
# Conflicts:
# drivers/net/virtio_net.c
# net/core/devlink.c

14 files changed:
1  2 
MAINTAINERS
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c
drivers/net/ethernet/neterion/vxge/vxge-config.c
drivers/net/ethernet/smsc/smc91x.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/virtio_net.c
include/net/netfilter/nf_tables.h
net/9p/trans_virtio.c
net/core/devlink.c
net/core/netpoll.c
net/mptcp/subflow.c
net/netfilter/nfnetlink_cthelper.c
net/packet/af_packet.c

diff --cc MAINTAINERS
Simple merge
Simple merge
index fa407eb8b457a6c33000e4e142edc263928feede,ed969b65126ea57f60ae4ec7f3b7553fe73114f2..f8f5b8646a4312a62646d7c0a0e841fec0408d8c
@@@ -398,16 -398,25 +398,28 @@@ static struct sk_buff *page_to_skb(stru
        else
                hdr_padded_len = sizeof(struct padded_vnet_hdr);
  
-       /* If headroom is not 0, there is an offset between the beginning of the
+       /* If whole_page, there is an offset between the beginning of the
         * data and the allocated space, otherwise the data and the allocated
         * space are aligned.
 +       *
 +       * Buffers with headroom use PAGE_SIZE as alloc size, see
 +       * add_recvbuf_mergeable() + get_mergeable_buf_len()
         */
-       truesize = headroom ? PAGE_SIZE : truesize;
-       tailroom = truesize - len - headroom;
-       buf = p - headroom;
+       if (whole_page) {
+               /* Buffers with whole_page use PAGE_SIZE as alloc size,
+                * see add_recvbuf_mergeable() + get_mergeable_buf_len()
+                */
+               truesize = PAGE_SIZE;
+               /* page maybe head page, so we should get the buf by p, not the
+                * page
+                */
+               tailroom = truesize - len - offset_in_page(p);
+               buf = (char *)((unsigned long)p & PAGE_MASK);
+       } else {
+               tailroom = truesize - len;
+               buf = p;
+       }
  
        len -= hdr_len;
        offset += hdr_padded_len;
Simple merge
Simple merge
index 051432ea4f69ed1e84f08f50feb62e0ff80f3af5,464f564082475b266411e5ea0309f24a83b4d100..1e953b77a77a99956139dd1d65a18fe0e4766b3d
@@@ -8630,12 -9289,11 +9288,10 @@@ static int __devlink_port_phys_port_nam
  
        switch (attrs->flavour) {
        case DEVLINK_PORT_FLAVOUR_PHYSICAL:
-               if (!attrs->split)
-                       n = snprintf(name, len, "p%u", attrs->phys.port_number);
-               else
-                       n = snprintf(name, len, "p%us%u",
-                                    attrs->phys.port_number,
-                                    attrs->phys.split_subport_number);
 -      case DEVLINK_PORT_FLAVOUR_VIRTUAL:
+               n = snprintf(name, len, "p%u", attrs->phys.port_number);
+               if (n < len && attrs->split)
+                       n += snprintf(name + n, len - n, "s%u",
+                                     attrs->phys.split_subport_number);
                break;
        case DEVLINK_PORT_FLAVOUR_CPU:
        case DEVLINK_PORT_FLAVOUR_DSA:
Simple merge
Simple merge
Simple merge
Simple merge