aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ipa/ipa_data.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-03-26 10:11:16 -0500
committerDavid S. Miller <davem@davemloft.net>2021-03-26 15:02:38 -0700
commit4bcfb35e7af9413a4715ec2c74f51e20043c70e2 (patch)
tree92546da444e9958e674e2510f5ac7d2a2a631d8c /drivers/net/ipa/ipa_data.h
parentnet: ipa: combine resource type definitions (diff)
downloadwireguard-linux-4bcfb35e7af9413a4715ec2c74f51e20043c70e2.tar.xz
wireguard-linux-4bcfb35e7af9413a4715ec2c74f51e20043c70e2.zip
net: ipa: index resource limits with type
Remove the type field from the ipa_resource_src and ipa_resource_dst structures, and instead use that value as the index into the arrays of source and destination resources. Change ipa_resource_config_src() and ipa_resource_config_dst() so the resource type is passed in as an argument. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_data.h')
-rw-r--r--drivers/net/ipa/ipa_data.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ipa/ipa_data.h b/drivers/net/ipa/ipa_data.h
index ccd7fd0b801a..44b93f93ee60 100644
--- a/drivers/net/ipa/ipa_data.h
+++ b/drivers/net/ipa/ipa_data.h
@@ -220,21 +220,17 @@ struct ipa_resource_limits {
/**
* struct ipa_resource_src - source endpoint group resource usage
- * @type: source group resource type
* @limits: array of limits to use for each resource group
*/
struct ipa_resource_src {
- enum ipa_resource_type type; /* IPA_RESOURCE_TYPE_SRC_* */
struct ipa_resource_limits limits[IPA_RESOURCE_GROUP_SRC_MAX];
};
/**
* struct ipa_resource_dst - destination endpoint group resource usage
- * @type: destination group resource type
* @limits: array of limits to use for each resource group
*/
struct ipa_resource_dst {
- enum ipa_resource_type type; /* IPA_RESOURCE_TYPE_DST_* */
struct ipa_resource_limits limits[IPA_RESOURCE_GROUP_DST_MAX];
};