Home
last modified time | relevance | path

Searched hist:"7 fa857ed" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/include/net/
H A Ddsa.h7fa857ed Mon Apr 28 13:14:27 CDT 2014 Florian Fainelli <f.fainelli@gmail.com> net: dsa: add ds_to_priv

DSA drivers have a trick which consists in allocating "priv_size" more
bytes to account for the DSA driver private context. Add a helper
function to access that private context instead of open-coding it in
drivers with (void *)(ds + 1).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
7fa857ed Mon Apr 28 13:14:27 CDT 2014 Florian Fainelli <f.fainelli@gmail.com> net: dsa: add ds_to_priv

DSA drivers have a trick which consists in allocating "priv_size" more
bytes to account for the DSA driver private context. Add a helper
function to access that private context instead of open-coding it in
drivers with (void *)(ds + 1).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>