Home
last modified time | relevance | path

Searched refs:ipatoe (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/drivers/s390/net/
Dqeth_l3_sys.c435 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_show() local
444 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_dev_ipato_add_show()
445 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show()
452 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show()
454 "%s/%i\n", addr_str, ipatoe->mask_bits); in qeth_l3_dev_ipato_add_show()
503 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_store() local
513 ipatoe = kzalloc(sizeof(struct qeth_ipato_entry), GFP_KERNEL); in qeth_l3_dev_ipato_add_store()
514 if (!ipatoe) { in qeth_l3_dev_ipato_add_store()
518 ipatoe->proto = proto; in qeth_l3_dev_ipato_add_store()
519 memcpy(ipatoe->addr, addr, (proto == QETH_PROT_IPV4)? 4:16); in qeth_l3_dev_ipato_add_store()
[all …]
Dqeth_l3_main.c114 struct qeth_ipato_entry *ipatoe; in qeth_l3_is_addr_covered_by_ipato() local
126 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato()
127 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato()
129 qeth_l3_convert_addr_to_bits(ipatoe->addr, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato()
130 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato()
134 min(32, ipatoe->mask_bits)); in qeth_l3_is_addr_covered_by_ipato()
137 min(128, ipatoe->mask_bits)); in qeth_l3_is_addr_covered_by_ipato()
549 struct qeth_ipato_entry *ipatoe, *tmp; in qeth_l3_clear_ipato_list() local
553 list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { in qeth_l3_clear_ipato_list()
554 list_del(&ipatoe->entry); in qeth_l3_clear_ipato_list()
[all …]