Thread (36 messages) flat view 36 messages, 12 authors, 2014-09-22

Re: [PATCH net] net: sched: shrink struct qdisc_skb_cb to 28 bytes

From: Eric Dumazet <hidden>
Date: 2014-09-18 20:31:46

On Thu, 2014-09-18 at 12:31 -0700, Joe Perches wrote:
I don't mind the const argument, but casting
the return to non-const seems like poor form.
This is the current way to do this, even if we do not like it.

C does not allow to have the same function name for different
parameters, there is nothing we can do about it at this moment.

->

static inline const struct ipoib_cb *ipoib_skb_cb(const struct sk_buff *skb)

static inline struct ipoib_cb *ipoib_skb_cb(struct sk_buff *skb)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help