Home
last modified time | relevance | path

Searched hist:c8652c83bc84ac8db44060ced0036de7628aa5e5 (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/dsa/
H A Dmv88e6060.cdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
H A Dlan9303-core.cdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
H A Dmt7530.cdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/linux/drivers/net/dsa/b53/
H A Db53_common.cdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/linux/include/net/
H A Ddsa.hdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.cdiff c8652c83bc84ac8db44060ced0036de7628aa5e5 Mon Oct 16 17:12:19 CEST 2017 Vivien Didelot <vivien.didelot@savoirfairelinux.com> net: dsa: add dsa_to_port helper

The dsa_port structure is part of DSA core data and must only be updated
by the later. It is OK and sometimes necessary for the DSA drivers to
access this data, but this has to be read only.

For that purpose, add a dsa_to_port() helper which returns a const
pointer to a dsa_port structure which must be used by DSA drivers from
now on instead of digging into ds->ports[] themselves.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>