mlxsw: item: Add helpers for getting pointer into payload for char buffer item
authorJiri Pirko <jiri@mellanox.com>
Fri, 3 Feb 2017 09:28:52 +0000 (10:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 21:35:38 +0000 (16:35 -0500)
commitd5e556c6a158893d9e50de3d4e7638f753ffd520
tree4756cc68c8aeba0abcabe13f8061c6e15be50105
parent2946fde9fd7f6c38beaaf581514b706d07c7aec0
mlxsw: item: Add helpers for getting pointer into payload for char buffer item

Sometimes it is handy to get a pointer to a char buffer item and use it
direcly to write/read data. So add these helpers.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/item.h