-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
1,146 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
docker/db-migration/migrations/009-cleanup-config-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: tag | ||
author: dpoltavets | ||
changes: | ||
- tagDatabase: | ||
tag: 009-cleanup-config-class | ||
|
||
- changeSet: | ||
id: cleanup_config_class | ||
author: dpoltavets | ||
changes: | ||
- sql: "DELETE VERTEX config" | ||
- sql: "DROP CLASS config" | ||
- sql: "DROP INDEX kilda_configuration.unique" | ||
- sql: "UPDATE kilda_configuration REMOVE unique" | ||
- sql: "DROP PROPERTY kilda_configuration.unique" | ||
rollback: | ||
- sql: "CREATE CLASS config IF NOT EXISTS EXTENDS V" | ||
- sql: "CREATE PROPERTY config.unique IF NOT EXISTS STRING" | ||
- sql: "CREATE INDEX config.unique UNIQUE_HASH_INDEX" | ||
- sql: "INSERT INTO config FROM (SELECT FROM kilda_feature_toggles)" | ||
- sql: "UPDATE config SET unique='config'" | ||
- sql: "CREATE PROPERTY kilda_configuration.unique IF NOT EXISTS STRING" | ||
- sql: "CREATE INDEX kilda_configuration.unique UNIQUE_HASH_INDEX" | ||
- sql: "UPDATE kilda_configuration SET unique='config'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /root | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
sed -i "s/CONFIG_RTE_PORT_PCAP=n/CONFIG_RTE_PORT_PCAP=y/g" build/.config | ||
sed -i "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/g" build/.config | ||
sed -i "s/CONFIG_RTE_LIBEAL_USE_HPET=n/CONFIG_RTE_LIBEAL_USE_HPET=y/g" build/.config | ||
patch -p0 < kni.patch | ||
patch -p0 < eal_rte_random.patch |
11 changes: 11 additions & 0 deletions
11
src-cpp/server42/external/upstream/dpdk/eal_rte_random.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- lib/librte_eal/common/rte_random.c 2019-11-29 00:13:49.000000000 +0200 | ||
+++ lib/librte_eal/common/rte_random_new.c 2021-07-15 16:26:34.057113279 +0300 | ||
@@ -198,7 +198,7 @@ | ||
return (uint64_t)rdseed_low | ((uint64_t)rdseed_high << 32); | ||
#endif | ||
/* second fallback: seed using rdtsc */ | ||
- return rte_get_timer_cycles(); | ||
+ return rte_get_tsc_cycles(); | ||
} | ||
|
||
RTE_INIT(rte_rand_init) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
unchanged: | ||
--- kernel/linux/kni/kni_net.c 2019-11-29 00:13:49.000000000 +0200 | ||
+++ kernel/linux/kni/kni_net_new.c 2021-07-06 18:07:17.457994637 +0300 | ||
@@ -623,8 +623,13 @@ | ||
/* | ||
* Deal with a transmit timeout. | ||
*/ | ||
+#ifdef HAVE_TX_TIMEOUT_TXQUEUE | ||
+static void | ||
+kni_net_tx_timeout(struct net_device *dev, unsigned int txqueue) | ||
+#else | ||
static void | ||
kni_net_tx_timeout(struct net_device *dev) | ||
+#endif | ||
{ | ||
pr_debug("Transmit timeout at %ld, latency %ld\n", jiffies, | ||
jiffies - dev_trans_start(dev)); | ||
only in patch2: | ||
unchanged: | ||
--- kernel/linux/kni/compat.h 2019-11-29 00:13:49.000000000 +0200 | ||
+++ kernel/linux/kni/compat_new.h 2021-07-06 18:04:44.252843148 +0300 | ||
@@ -130,3 +130,7 @@ | ||
#if KERNEL_VERSION(4, 10, 0) <= LINUX_VERSION_CODE | ||
#define HAVE_IOVA_TO_KVA_MAPPING_SUPPORT | ||
#endif | ||
+ | ||
+#if KERNEL_VERSION(5, 6, 0) <= LINUX_VERSION_CODE | ||
+#define HAVE_TX_TIMEOUT_TXQUEUE | ||
+#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.