mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor conflicts in drivers/net/ethernet/mellanox/mlx5/core/en_rep.c,
we had some overlapping changes:
1) In 'net' MLX5E_PARAMS_LOG_{SQ,RQ}_SIZE -->
MLX5E_REP_PARAMS_LOG_{SQ,RQ}_SIZE
2) In 'net-next' params->log_rq_size is renamed to be
params->log_rq_mtu_frames.
3) In 'net-next' params->hard_mtu is added.
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
c0b458a946
205 changed files with 1916 additions and 1103 deletions
|
|
@ -630,7 +630,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk)
|
|||
|
||||
if (!len && vq->busyloop_timeout) {
|
||||
/* Both tx vq and rx socket were polled here */
|
||||
mutex_lock(&vq->mutex);
|
||||
mutex_lock_nested(&vq->mutex, 1);
|
||||
vhost_disable_notify(&net->dev, vq);
|
||||
|
||||
preempt_disable();
|
||||
|
|
@ -763,7 +763,7 @@ static void handle_rx(struct vhost_net *net)
|
|||
struct iov_iter fixup;
|
||||
__virtio16 num_buffers;
|
||||
|
||||
mutex_lock(&vq->mutex);
|
||||
mutex_lock_nested(&vq->mutex, 0);
|
||||
sock = vq->private_data;
|
||||
if (!sock)
|
||||
goto out;
|
||||
|
|
|
|||
|
|
@ -212,8 +212,7 @@ int vhost_poll_start(struct vhost_poll *poll, struct file *file)
|
|||
if (mask)
|
||||
vhost_poll_wakeup(&poll->wait, 0, 0, poll_to_key(mask));
|
||||
if (mask & EPOLLERR) {
|
||||
if (poll->wqh)
|
||||
remove_wait_queue(poll->wqh, &poll->wait);
|
||||
vhost_poll_stop(poll);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
|
||||
|
|
@ -1245,14 +1244,12 @@ static int vq_log_access_ok(struct vhost_virtqueue *vq,
|
|||
/* Caller should have vq mutex and device mutex */
|
||||
int vhost_vq_access_ok(struct vhost_virtqueue *vq)
|
||||
{
|
||||
if (vq->iotlb) {
|
||||
/* When device IOTLB was used, the access validation
|
||||
* will be validated during prefetching.
|
||||
*/
|
||||
return 1;
|
||||
}
|
||||
return vq_access_ok(vq, vq->num, vq->desc, vq->avail, vq->used) &&
|
||||
vq_log_access_ok(vq, vq->log_base);
|
||||
int ret = vq_log_access_ok(vq, vq->log_base);
|
||||
|
||||
if (ret || vq->iotlb)
|
||||
return ret;
|
||||
|
||||
return vq_access_ok(vq, vq->num, vq->desc, vq->avail, vq->used);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(vhost_vq_access_ok);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue