Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
There were quite a few overlapping sets of changes here. Daniel's bug fix for off-by-ones in the new BPF branch instructions, along with the added allowances for "data_end > ptr + x" forms collided with the metadata additions. Along with those three changes came veritifer test cases, which in their final form I tried to group together properly. If I had just trimmed GIT's conflict tags as-is, this would have split up the meta tests unnecessarily. In the socketmap code, a set of preemption disabling changes overlapped with the rename of bpf_compute_data_end() to bpf_compute_data_pointers(). Changes were made to the mv88e6060.c driver set addr method which got removed in net-next. The hyperv transport socket layer had a locking change in 'net' which overlapped with a change of socket state macro usage in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1110,11 +1110,12 @@ static int build_hdr_data(u8 hdr_field, struct sk_buff *skb,
|
||||
* places them in a descriptor array, scrq_arr
|
||||
*/
|
||||
|
||||
static void create_hdr_descs(u8 hdr_field, u8 *hdr_data, int len, int *hdr_len,
|
||||
union sub_crq *scrq_arr)
|
||||
static int create_hdr_descs(u8 hdr_field, u8 *hdr_data, int len, int *hdr_len,
|
||||
union sub_crq *scrq_arr)
|
||||
{
|
||||
union sub_crq hdr_desc;
|
||||
int tmp_len = len;
|
||||
int num_descs = 0;
|
||||
u8 *data, *cur;
|
||||
int tmp;
|
||||
|
||||
@@ -1143,7 +1144,10 @@ static void create_hdr_descs(u8 hdr_field, u8 *hdr_data, int len, int *hdr_len,
|
||||
tmp_len -= tmp;
|
||||
*scrq_arr = hdr_desc;
|
||||
scrq_arr++;
|
||||
num_descs++;
|
||||
}
|
||||
|
||||
return num_descs;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1161,16 +1165,12 @@ static void build_hdr_descs_arr(struct ibmvnic_tx_buff *txbuff,
|
||||
int *num_entries, u8 hdr_field)
|
||||
{
|
||||
int hdr_len[3] = {0, 0, 0};
|
||||
int tot_len, len;
|
||||
int tot_len;
|
||||
u8 *hdr_data = txbuff->hdr_data;
|
||||
|
||||
tot_len = build_hdr_data(hdr_field, txbuff->skb, hdr_len,
|
||||
txbuff->hdr_data);
|
||||
len = tot_len;
|
||||
len -= 24;
|
||||
if (len > 0)
|
||||
num_entries += len % 29 ? len / 29 + 1 : len / 29;
|
||||
create_hdr_descs(hdr_field, hdr_data, tot_len, hdr_len,
|
||||
*num_entries += create_hdr_descs(hdr_field, hdr_data, tot_len, hdr_len,
|
||||
txbuff->indir_arr + 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user