Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
b1bf78bfb2
197 changed files with 1788 additions and 743 deletions
|
|
@ -406,6 +406,8 @@ static inline void net_dim(struct net_dim *dim,
|
|||
}
|
||||
/* fall through */
|
||||
case NET_DIM_START_MEASURE:
|
||||
net_dim_sample(end_sample.event_ctr, end_sample.pkt_ctr, end_sample.byte_ctr,
|
||||
&dim->start_sample);
|
||||
dim->state = NET_DIM_MEASURE_IN_PROGRESS;
|
||||
break;
|
||||
case NET_DIM_APPLY_NEW_PROFILE:
|
||||
|
|
|
|||
|
|
@ -1334,6 +1334,22 @@ static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void skb_zcopy_set_nouarg(struct sk_buff *skb, void *val)
|
||||
{
|
||||
skb_shinfo(skb)->destructor_arg = (void *)((uintptr_t) val | 0x1UL);
|
||||
skb_shinfo(skb)->tx_flags |= SKBTX_ZEROCOPY_FRAG;
|
||||
}
|
||||
|
||||
static inline bool skb_zcopy_is_nouarg(struct sk_buff *skb)
|
||||
{
|
||||
return (uintptr_t) skb_shinfo(skb)->destructor_arg & 0x1UL;
|
||||
}
|
||||
|
||||
static inline void *skb_zcopy_get_nouarg(struct sk_buff *skb)
|
||||
{
|
||||
return (void *)((uintptr_t) skb_shinfo(skb)->destructor_arg & ~0x1UL);
|
||||
}
|
||||
|
||||
/* Release a reference on a zerocopy structure */
|
||||
static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy)
|
||||
{
|
||||
|
|
@ -1343,7 +1359,7 @@ static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy)
|
|||
if (uarg->callback == sock_zerocopy_callback) {
|
||||
uarg->zerocopy = uarg->zerocopy && zerocopy;
|
||||
sock_zerocopy_put(uarg);
|
||||
} else {
|
||||
} else if (!skb_zcopy_is_nouarg(skb)) {
|
||||
uarg->callback(uarg, zerocopy);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -196,6 +196,7 @@ struct tcp_sock {
|
|||
u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
|
||||
u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
|
||||
u32 last_oow_ack_time; /* timestamp of last out-of-window ACK */
|
||||
u32 compressed_ack_rcv_nxt;
|
||||
|
||||
u32 tsoffset; /* timestamp offset */
|
||||
|
||||
|
|
|
|||
|
|
@ -66,4 +66,7 @@
|
|||
/* Device needs a pause after every control message. */
|
||||
#define USB_QUIRK_DELAY_CTRL_MSG BIT(13)
|
||||
|
||||
/* Hub needs extra delay after resetting its port. */
|
||||
#define USB_QUIRK_HUB_SLOW_RESET BIT(14)
|
||||
|
||||
#endif /* __LINUX_USB_QUIRKS_H */
|
||||
|
|
|
|||
|
|
@ -624,7 +624,7 @@ v4l2_m2m_dst_buf_remove_by_idx(struct v4l2_m2m_ctx *m2m_ctx, unsigned int idx)
|
|||
|
||||
/* v4l2 request helper */
|
||||
|
||||
void vb2_m2m_request_queue(struct media_request *req);
|
||||
void v4l2_m2m_request_queue(struct media_request *req);
|
||||
|
||||
/* v4l2 ioctl helpers */
|
||||
|
||||
|
|
|
|||
|
|
@ -608,4 +608,16 @@ static inline __u32 sctp_dst_mtu(const struct dst_entry *dst)
|
|||
SCTP_DEFAULT_MINSEGMENT));
|
||||
}
|
||||
|
||||
static inline bool sctp_transport_pmtu_check(struct sctp_transport *t)
|
||||
{
|
||||
__u32 pmtu = sctp_dst_mtu(t->dst);
|
||||
|
||||
if (t->pathmtu == pmtu)
|
||||
return true;
|
||||
|
||||
t->pathmtu = pmtu;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* __net_sctp_h__ */
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@
|
|||
#ifndef __LINUX_V4L2_CONTROLS_H
|
||||
#define __LINUX_V4L2_CONTROLS_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Control classes */
|
||||
#define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */
|
||||
#define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */
|
||||
|
|
@ -1110,6 +1112,7 @@ struct v4l2_mpeg2_sequence {
|
|||
__u8 profile_and_level_indication;
|
||||
__u8 progressive_sequence;
|
||||
__u8 chroma_format;
|
||||
__u8 pad;
|
||||
};
|
||||
|
||||
struct v4l2_mpeg2_picture {
|
||||
|
|
@ -1128,6 +1131,7 @@ struct v4l2_mpeg2_picture {
|
|||
__u8 alternate_scan;
|
||||
__u8 repeat_first_field;
|
||||
__u8 progressive_frame;
|
||||
__u8 pad;
|
||||
};
|
||||
|
||||
struct v4l2_ctrl_mpeg2_slice_params {
|
||||
|
|
@ -1142,6 +1146,7 @@ struct v4l2_ctrl_mpeg2_slice_params {
|
|||
|
||||
__u8 backward_ref_index;
|
||||
__u8 forward_ref_index;
|
||||
__u8 pad;
|
||||
};
|
||||
|
||||
struct v4l2_ctrl_mpeg2_quantization {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue